[英]npm ERR! code E404, npm ERR! 404 Not Found: @XXXX
I'm using a custom npm registry, and have recently started getting the following error happening when trying to do an npm install
. 我正在使用自定义npm注册表,并且最近尝试进行
npm install
时开始出现以下错误。
What could be causing this? 是什么原因造成的? I've tried different versions of node, and clearing my
node_modules
folder and neither helped. 我尝试了不同版本的节点,并且清除了
node_modules
文件夹,但都没有帮助。
This turned out to be an issue with trying to used scoped packages. 事实证明,这是尝试使用作用域包的问题。
To resolve it, I simply hardcoded the dependencies by removing the ^
in the devDependencies list in package.json
, eg 为了解决它,我只是通过删除
package.json
的devDependencies列表中的^
来对依赖项进行硬编码,例如
"devDependencies": { "devDependencies": {
- "express": "^4.14.0", + "express": "4.14.0",
- "gh-pages": "^0.12.0", + "gh-pages": "0.12.0",
etc... 等等...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.