四时宝库

程序员的知识宝库

vue 中npm 执行就出现node版本问题

vue 中node版本换了一遍又一遍。但是 以前使用到的npm 显示的版本依然不变。使用npm 常常提示:

npm cache clean --force npm WARN npm npm does not support Node.js v16.10.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 WARN using --force I sure hope you know what you are doing.


处理方式:

1、安装nodejs;

2、全局模块的安装路径.

npm config set prefix "C:\nodejs\node_global"

npm config set cache "C:\nodejs\node_cache"

配置后就可以正常使用npm。

参考:https://blog.csdn.net/kilig_CSM/article/details/126657934


发表评论:

控制面板
您好,欢迎到访网站!
  查看权限
网站分类
最新留言
    友情链接