问题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 //更改淘宝镜像源
博客主要介绍了npm install的常见报错,如Maximum call stack size exceeded、ENOTSUP: operation not supported on socket, symlink、Socket timeout等,还给出了解决办法,包括全局安装npm、升级npm版本、参考官方文档、更改淘宝镜像源等。
545

被折叠的 条评论
为什么被折叠?



