安装淘宝镜像cnpm报错

npm 安装淘宝镜像报错

npm install -g cnpm --registry=https://registry.npm.taobao.org

安装报

The operation was rejected by your operating system.

npm ERR! It's possible that the file was already in use (by a text editor or antivirus),

npm ERR! or that you lack permissions to access it.

npm ERR!

-4048

解决办法

把这句命令

npm install -g cnpm --registry=https://registry.npm.taobao.org

改成指定版本就好了(版本号可以根据自己需求来)

npm install -g cnpm@7.1.1 --registry=https://registry.npm.taobao.org

就可以了

相关推荐
whale fall5 小时前
npm install安装的node_modules是什么
前端·npm·node.js
做梦都在学习前端9 小时前
发布一个monaco-editor 汉化包
前端·npm·vite
墨菲安全2 天前
NPM组件 betsson 等窃取主机敏感信息
前端·npm·node.js·软件供应链安全·主机信息窃取·npm组件投毒
聪聪的学习笔记3 天前
【1】确认安装 Node.js 和 npm版本号
前端·npm·node.js
whale fall4 天前
npm install安装不成功(node:32388)怎么解决?
前端·npm·node.js
Gazer_S4 天前
【公司环境下发布个人NPM包完整教程】
前端·npm·node.js
溪i4 天前
pnpm 升级
npm
你喜欢喝可乐吗?4 天前
Windows 安装 nodejs npm
前端·npm·node.js
come112344 天前
npm 命令入门指南(前端小白版)
前端·npm·node.js
墨菲安全4 天前
NPM组件 alan-baileys 等窃取主机敏感信息
前端·npm·node.js·npm组件·恶意包·主机信息窃取