请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

安装 axios 安装包时 出现的错误

图片描述
老师 您好 在安装 axios 安装包时 出现下边的错误 有影响吗

正在回答 回答被采纳积分+3

1回答

谢成 2021-02-26 09:26:12

1、先清楚下npm缓存

npm cache clean --force

2、删除该云函数下的package-lock.json

3、再重新安装试试

0 回复 有任何疑惑可以回复我~
  • 提问者 慕田峪8555410 #1
    老师 还是会报错
    PS D:\designend\cloudfunctions\getPlaylist> npm cache clean --force
    npm WARN using --force I sure hope you know what you are doing.
    PS D:\designend\cloudfunctions\getPlaylist> npm install axios      
    npm ERR! code ENOTFOUND
    npm ERR! errno ENOTFOUND
    npm ERR! network request to https://registry.npmjs.org/axios failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org
    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!     C:\Users\86158\AppData\Roaming\npm-cache\_logs\2021-02-26T09_24_56_713Z-debug.log
    回复 有任何疑惑可以回复我~ 2021-02-26 17:27:41
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信