不知道什么原因,安装node后,打包就开始报错:
报错内容
Not Found - GET http://registry.npmjs.org/electron-localStorage - Not found
解决方法:
一:查看返回值是否为null
npm config get proxy
npm config get https-proxy
二:不为null 需要执行以下命令
npm config set proxy null
npm config set https-proxy null
三:执行
npm config set registry http://registry.cnpmjs.org/
npm install -g cnpm --registry=https://registry.npm.taobao.org