本文主要是介绍安装淘宝镜像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
就可以了
这篇关于安装淘宝镜像cnpm报错的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!