-
官網(wǎng)信息鏈接:https://nodejs.org/zh-cn/download/releases/文章來源:http://www.zghlxwxcb.cn/news/detail-583513.html
-
安裝指定版本的npm文章來源地址http://www.zghlxwxcb.cn/news/detail-583513.html
- 1.安裝淘寶鏡像 即 npm轉(zhuǎn)cnpm 防止npm安裝過慢
npm install -g cnpm --registry=https://registry.npm.taobao.org
- 2.查看當(dāng)前node版本(我的大版本是16)
node -v
- 3.查看當(dāng)前npm版本,安裝node.js對應(yīng)版本的npm
cnpm install npm@8.19.4 -g
- 3.確認(rèn)是否安裝成功 (打開命令行,然后輸入)
npm -v // 查看版本
到了這里,關(guān)于查看NodeJS與npm對應(yīng)版本以及指定安裝特定版本的npm(可查)的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!