1. 官方镜像:https://registry.npmjs.org/

2. 淘宝镜像:https://registry.npmmirror.com

3. cnpm镜像:https://r.cnpmjs.org/

4. 阿里云镜像:https://npm.aliyun.com/

5. 中国科技大学镜像:https://mirrors.ustc.edu.cn/npm/

6. 华为云镜像:https://mirrors.huaweicloud.com/repository/npm/

7. 七牛云镜像:https://npm.qiniu.com/

node全版本下载

https://registry.npmmirror.com/binary.html?path=node/v14.17.3/

重点推荐第三个cnpm使用,有时候官方和淘宝都不行,cnpm秒装

或者直接安装cnpm

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

命令

npm config set registry https://npm.aliyun.com/

npm config set registry https://r.cnpmjs.org/

Error message “error:0308010C:digital envelope routines::unsupported”


Windows command prompt(Windows 命令行工具):

set NODE_OPTIONS=--openssl-legacy-provider

On PowerShell(Windows PowerShell 命令行工具):

$env:NODE_OPTIONS = "--openssl-legacy-provider"

报文件丢失

直接把nodemodel文件夹里全部删除,重新npm install

某个插件怎么也装不上去的时候,可以试试这个

npm install fibers@5.0.0 --ignore-scripts

安装时报错,peer,webpack之类可以用下面这条

npm install --legacy-peer-deps

点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论

微信小程序

微信扫一扫体验

立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部
0.295490s