我试图为我从源码管理下载的react项目安装节点依赖项,但是有一些troubles.For实例,我得到了这个错误:
Failed to compile
./node_modules/chain-function/index.js
Error: ENOENT: no such file or directory, open 'C:\....\v7\ClientApp\node_modules\chain-function\index.js'我没有在我的package.json文件中将“链函数”列为依赖项,我不确定如何找出是什么导致了这里的错误,以及如何解决它。
下面是我的package.json依赖项:
"bootstrap": "^3.3.7",
"jquery": "^3.3.1",
"popper.js": "^1.14.4",
"react": "^16.5.2",
"react-bootstrap": "^0.31.5",
"react-cookie": "^3.0.4",
"react-dom": "^16.0.0",
"react-redux": "^5.0.7",
"react-router-bootstrap": "^0.24.4",
"react-router-dom": "^4.2.2",
"react-scripts": "^2.0.4",
"react-text-mask": "^5.4.3",
"react-tooltip": "^3.9.0",
"react-transition-group": "^2.5.0",
"redux": "^4.0.0",
"rimraf": "^2.6.2"发布于 2018-10-16 23:23:42
可能你在package.json中的一些依赖依赖于链函数,或者仅仅是网络的问题,面对这样的问题是很正常的,我只能给你一些建议。
https://stackoverflow.com/questions/52837934
复制相似问题