mac 安装cnpm 淘宝镜像记录

mac 淘宝镜像记录

本文介绍了在安装cnpm时遇到权限问题的解决方案,包括使用sudo,处理SSL证书过期,以及因版本不一致导致的错误处理方法,步骤包括设置npm配置、卸载和重新安装cnpm到特定版本。

安装

bash 复制代码
npm install cnpm -g --registry=https://registry.npm.taobao.org

会报错 没有权限,这时需要加上sudo

bash 复制代码
sudo npm install cnpm -g --registry=https://registry.npm.taobao.org

这时候如果有些人会报错,证书过期不能访问之类的

需要加上

bash 复制代码
npm config set strict-ssl false
相关推荐
爱吃南瓜的北瓜11 小时前
npm install 卡在“sill idealTree buildDeps“
前端·npm·node.js
TTc_11 小时前
记录首次安装远古时代所需的运行环境成功npm install --save-dev node-sass
前端·npm·sass
翻滚吧键盘11 小时前
npm使用了代理,但是代理软件已经关闭导致创建失败
前端·npm·node.js
bubusa~>_<1 天前
解决npm install 出现error,比如:ERR_SSL_CIPHER_OPERATION_FAILED
前端·npm·node.js
天下皆白_唯我独黑1 天前
npm 安装扩展遇到证书失效解决方案
前端·npm·node.js
~欸嘿1 天前
Could not download npm for node v14.21.3(nvm无法下载节点v14.21.3的npm)
前端·npm·node.js
^^为欢几何^^1 天前
npm、pnpm和yarn有什么区别
前端·npm·node.js
懒羊羊我小弟2 天前
常用 Webpack Plugin 汇总
前端·webpack·npm·node.js·yarn
小白探索世界欧耶!~3 天前
npm/pnpm软链接
前端·npm·node.js
柚子味儿的西瓜3 天前
npm install --legacy-peer-deps和npm install --force的区别
前端·npm·node.js