最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

npm install返回304和404错误,而不是安装软件包

IT培训 admin 4浏览 0评论

npm install返回304和404错误,而不是安装软件包

当我运行npm install时,我会看到很多这样的东西:

npm http fetch GET 304  60ms (from cache)
npm http fetch GET 304  67ms (from cache)
npm http fetch GET 304  72ms (from cache)
npm http fetch GET 200  11ms (from cache)
npm http fetch GET 304  68ms (from cache)
npm http fetch GET 304  85ms (from cache)
npm http fetch GET 304  90ms (from cache)
npm http fetch GET 304  72ms (from cache)
npm http fetch GET 304  66ms (from cache)
npm http fetch GET 200  6ms (from cache)
npm http fetch GET 304  92ms (from cache)
npm http fetch GET 200  12ms (from cache)
npm http fetch GET 304  68ms (from cache)
npm http fetch GET 304  88ms (from cache)
npm http fetch GET 304  89ms (from cache)
npm http fetch GET 304  72ms (from cache)
npm http fetch GET 304  88ms (from cache)
npm http fetch GET 304  64ms (from cache)
npm http fetch GET 304  85ms (from cache)
npm http fetch GET 304  81ms (from cache)
npm http fetch GET 304  87ms (from cache)
npm http fetch GET 304  76ms (from cache)
npm http fetch GET 304  82ms (from cache)
npm http fetch GET 200  8ms (from cache)
npm http fetch GET 304  76ms (from cache)
npm http fetch GET 304  73ms (from cache)
npm http fetch GET 304  69ms (from cache)
npm http fetch GET 304  83ms (from cache)
npm http fetch GET 304  81ms (from cache)
npm http fetch GET 304  61ms (from cache)
npm http fetch GET 304  53ms (from cache)
npm http fetch GET 304  52ms (from cache)
npm http fetch GET 304  84ms (from cache)
npm http fetch GET 304  53ms (from cache)
npm http fetch GET 304  42ms (from cache)
npm http fetch GET 304  76ms (from cache)
npm http fetch GET 404 /@apollographql%2fapollo-tools 726ms
npm timing stage:rollbackFailedOptional Completed in 0ms
npm timing stage:runTopLevelLifecycles Completed in 6589ms
npm ERR! code E404
npm ERR! 404 Not Found: @apollographql/apollo-tools@^0.4.0
npm timing npm Completed in 6995ms

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/paulcarron/.npm/_logs/2019-10-01T19_18_38_895Z-debug.log

我不确定为什么我的软件包无法安装。我有一段模糊的回忆,我有一段时间更新了npm url,但是这里的URL看起来还可以。有什么建议吗?

回答如下:

您是否正在代理或防火墙后面访问互联网?许多大型企业都有阻止这些来源的防火墙。如果不是这种情况,则可能是您所在地区的npm来源很慢或被阻止。尝试在本地搜索Google NPM源。

在中国,“ https://npm.taobao”比官方的npm寄存器快得多。

抱歉,我没有足够的声誉来发表评论。

npm install返回304和404错误,而不是安装软件包

当我运行npm install时,我会看到很多这样的东西:

npm http fetch GET 304  60ms (from cache)
npm http fetch GET 304  67ms (from cache)
npm http fetch GET 304  72ms (from cache)
npm http fetch GET 200  11ms (from cache)
npm http fetch GET 304  68ms (from cache)
npm http fetch GET 304  85ms (from cache)
npm http fetch GET 304  90ms (from cache)
npm http fetch GET 304  72ms (from cache)
npm http fetch GET 304  66ms (from cache)
npm http fetch GET 200  6ms (from cache)
npm http fetch GET 304  92ms (from cache)
npm http fetch GET 200  12ms (from cache)
npm http fetch GET 304  68ms (from cache)
npm http fetch GET 304  88ms (from cache)
npm http fetch GET 304  89ms (from cache)
npm http fetch GET 304  72ms (from cache)
npm http fetch GET 304  88ms (from cache)
npm http fetch GET 304  64ms (from cache)
npm http fetch GET 304  85ms (from cache)
npm http fetch GET 304  81ms (from cache)
npm http fetch GET 304  87ms (from cache)
npm http fetch GET 304  76ms (from cache)
npm http fetch GET 304  82ms (from cache)
npm http fetch GET 200  8ms (from cache)
npm http fetch GET 304  76ms (from cache)
npm http fetch GET 304  73ms (from cache)
npm http fetch GET 304  69ms (from cache)
npm http fetch GET 304  83ms (from cache)
npm http fetch GET 304  81ms (from cache)
npm http fetch GET 304  61ms (from cache)
npm http fetch GET 304  53ms (from cache)
npm http fetch GET 304  52ms (from cache)
npm http fetch GET 304  84ms (from cache)
npm http fetch GET 304  53ms (from cache)
npm http fetch GET 304  42ms (from cache)
npm http fetch GET 304  76ms (from cache)
npm http fetch GET 404 /@apollographql%2fapollo-tools 726ms
npm timing stage:rollbackFailedOptional Completed in 0ms
npm timing stage:runTopLevelLifecycles Completed in 6589ms
npm ERR! code E404
npm ERR! 404 Not Found: @apollographql/apollo-tools@^0.4.0
npm timing npm Completed in 6995ms

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/paulcarron/.npm/_logs/2019-10-01T19_18_38_895Z-debug.log

我不确定为什么我的软件包无法安装。我有一段模糊的回忆,我有一段时间更新了npm url,但是这里的URL看起来还可以。有什么建议吗?

回答如下:

您是否正在代理或防火墙后面访问互联网?许多大型企业都有阻止这些来源的防火墙。如果不是这种情况,则可能是您所在地区的npm来源很慢或被阻止。尝试在本地搜索Google NPM源。

在中国,“ https://npm.taobao”比官方的npm寄存器快得多。

抱歉,我没有足够的声誉来发表评论。

发布评论

评论列表 (0)

  1. 暂无评论