npm警告npm不支持Node.js v7.2.0,我尝试输入“npm卸载-g npm",但它不起作用,我如何修复它,谢谢you><
npm WARN npm npm does not support Node.js v7.2.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11.
npm WARN npm You can find the latest version at https://nodejs.org/
andyhuangde-MacBook-Air:~ andyhuang$ npm uninstall -g npm
npm WARN npm npm does not support Node.js v7.2.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11.
npm WARN npm You can find the latest version at https://nodejs.org/
npm ERR! path /private/tmp/npm.37658/package/npm-6.4.1.tgz
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall stat
npm ERR! enoent ENOENT: no such file or directory, stat '/private/tmp/npm.37658/package/npm-6.4.1.tgz'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:发布于 2019-05-04 13:37:05
首先,您需要安装LTS版本10.15.3
其次,为什么要使用
npm uninstall -g npm如果卸载npm,如何安装节点包?
https://stackoverflow.com/questions/55981072
复制相似问题