网站建设工具哪个好用,织梦电影网站免费模板,外贸平台做摩托车配件什么网站好,泰州网站设计公司事项一#xff1a;项目代码放在本地怎么运行起来
1、首先确定项目对应的node和npm版本
node下载地址 Index of /dist/https://nodejs.org/dist/
node 与 npm版本对应关系
Node.js — Node.js Releases 2、node卸载的时候#xff0c;会自动把对应的npm卸载掉
情况1…事项一项目代码放在本地怎么运行起来
1、首先确定项目对应的node和npm版本
node下载地址 Index of /dist/https://nodejs.org/dist/
node 与 npm版本对应关系
Node.js — Node.js Releases 2、node卸载的时候会自动把对应的npm卸载掉
情况1
node版本和对应的npm版本低电脑上存在较高版本的npm导致使用npm时会提示node版本低此时先卸载低版本node安装高版本对应的node
然后使用 npm uninstall npm -g卸载高版本的npm。
然后安装需要的node版本即可对应的npm会自动安装不用再单独安装npm。 3、cnpm 及 淘宝镜像
cnpm安装 npm install -g cnpm --registryhttps://registry.npmmirror.com npm install -g cnpm --registryhttp://mirrors.cloud.tencent.com/nodejs-release/
nodejs 12版本安装低版本cnpm npm install cnpm7.1.0 -g --registryhttps://registry.npmmirror.com
淘宝镜像 npm config set registry https://registry.npmmirror.com
查看 npm config list npm config get registry
清除缓存 npm cache clear --force
镜像源 1、淘宝镜像: https://npmmirror.com/mirrors/npm/ 2、cnpmjs镜像: https://registry.nlark.com 3、npm官方镜像: https://registry.npmjs.org
注玩儿nodejs卡住了多按按空格
参考 cnpm安装 最新淘宝镜像源_cnpm淘宝镜像-CSDN博客