我得到了rollbackFailedOptional:我的所有npm install package --save命令上的动词npm-session错误。我已经查看了与此相关的每个问题,并尝试了所有解决方案。
我尝试过npm config rm代理&& npm config rm https-proxy。不工作。我尝试将注册表重置为http://registry.npmjs.org。没有用。
我一直无法找到解决方案。 AWS C9的设置是否存在某些问题,导致上述解决方案不可行?
更新
这是请求超时后收到的最新错误消息:
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to http://registry.npmjs.org/express failed, reason: connect ETIMEDOUT 104.16.19.35:80
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ubuntu/.npm/_logs/2019-07-09T20_28_25_001Z-debug.log
我不知道如何访问该日志文件。我是一名初学者,我不知道这意味着什么,甚至如何采取行动。