问题npm install报错:npm ERR! Maximum call stack size exceeded
// 全局安装npm
npm install npm -g
//升级npm到最新版本
问题 npm install报错 npm ERR! ENOTSUP: operation not supported on socket, symlink
因为服务器用的windows+虚拟机和共享文件夹,所以报错
npm config set bin-links false
官方文档:
https://docs.npmjs.com/cli/v7/using-npm/config#bin-links
问题 request to https://registry.npmjs.org/esprima failed, reason: Socket timeout
解决:
npm config set registry https://registry.npm.taobao.org
//更改淘宝镜像源