windows 安装 nodejs指定版本


window server 2008 安装 node-v16.11.0-x64时报  This application only supported on window8.1, windows Server 2012R2,or higher。 

 

经查 window server 2008能 node-v13及以下版本。

 

 

于是在网站:https://nodejs.org/en/download/releases/ 下载node-v13.8.0-x64。

 

 

安装前先卸载之前安装的nodejs,卸载时报没有权限,不用管它。

再安装node时,也可能会提示不能更新path,没有权限,不管它。我查到有网友说要修改注册表,但是修改后也是没用。因为本身用户就是超级管理员。

安装完成后,在项目中执行npm install 可能会报:

You are likely using a version of node-tar or npm that is incompatible with this version of Node.js.
Please use either the version of npm that is bundled with Node.js, or a version of npm (> X or < X) or node-tar (> X) that is compa
tible with Node.js X and above

解决办法: 

  1、npm uninstall -g npm

  2、npm install -g npm

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM