我想将react-phone-number-input包安装到我的Reactjs项目中。我用亚恩做我的包裹经理。
因此,我执行了以下命令
yarn add react-phone-number-input并收到以下错误。
./node_modules/dnd-core/lib/HandlerRegistry.js模块构建失败:错误: ENOENT:没有这样的文件或目录,打开'/path/to/node_modules/dnd-core/lib/HandlerRegistry.js‘
我做错了什么?我如何使用亚恩安装反应-电话号码输入?
编辑
基于一个答案,我尝试了以下方法
rm -rf node_modules
yarn autoclean --init # creates .yarnclean file
yarn autoclean --force
yarn install
yarn add react-phone-number-input得到了以下错误。
TypeError:_dndCore.DragDropManager不是构造函数
发布于 2018-09-25 17:13:30
您可以尝试删除node_modules,清理纱线,重新安装。
rm -rf node_modules
yarn cleanup
yarn install
yarn add react-phone-number-inputhttps://stackoverflow.com/questions/52503421
复制相似问题