npm无法install

npm报错:npm ERR! cb.apply is not a function

npm ERR! cb.apply is not a function

解决方法

  1. 在C:\Users\用户名下找到.npmrc文件
  2. 将淘宝镜像registry=https://registry.npm.taobao.org/ 替换该文件里的内容
  3. 修改成功后,执行npm info underscore命令
  4. npm即可正常下载软件包

posted @ 2021-06-26 20:10  自渡STC  阅读(138)  评论(0)    收藏  举报