0
点赞
收藏
分享

微信扫一扫

[SDX35+WCN6856]SDX35 +WCN6856 remount firmware出现失败问题原因及解决方案

王栩的文字 2024-09-28 阅读 17

1. 重装

检查网络设置,删除 node_modules 重新 npm install

2. 配置 npm 代理

//  配置nmp代理来提高速度,如设置淘宝镜像
npm config set registry https://registry.npm.taobao.org
 
// 查看配置是否成功
npm config get registry
 
// 成功后重新npm install安装
npm install

3. 使用 nrm 来管理 npm 镜像源

// 全局安装nrm (mac需要加上sudo)
npm install -g nrm
 
// 查看可配置的源列表
nrm ls
 
// 使用配置列表中的源
nrm use taobao

// 成功后重新npm install安装
npm install

4. 使用 cnpm 来安装

// 全局安装cnpm (mac需要加上sudo)
npm install cnpm -g --registry=https://registry.npmmirror.com
 
// 成功后使用cnpm install安装
cnpm install

5. 使用 yarn 来安装

// 全局安装yarn (mac需要加上sudo)
npm install -g yarn
 
// 成功后使用yarn install安装
yarn install

6. 使用 pnpm 来安装

// 全局安装pnpm
npm install -g pnpm

// 成功后使用pnpm install安装
pnpm install
举报

相关推荐

0 条评论