- 工信部备案号 滇ICP备05000110号-1
- 滇公安备案 滇53010302000111
- 增值电信业务经营许可证 B1.B2-20181647、滇B1.B2-20190004
- 云南互联网协会理事单位
- 安全联盟认证网站身份V标记
- 域名注册服务机构许可:滇D3-20230001
- 代理域名注册服务机构:新网数码
蓝队云小课堂:
报错1
npm ERR! Cannot read properties of null (reading 'pickAlgorithm')
解决方案:清理缓存后再次安装
npm cache clear –force
报错2
npm ERR! gyp info it worked if it ends with ok
...
npm ERR! gyp ERR! cwd C:\\...\\node_modules\\node-sass
npm ERR! gyp ERR! node -v v16.14.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1
解决方案:安装最新版本的node-sass
npm install node-sass@latest
报错3
Error: Node Sass version 7.0.1 is incompatible with ^4.0.0.
解决方案:先卸载node-sass再安装指定版本的
npm uninstall i node-sass
npm install node-sass@4.0.0
报错案例4
npm ERR! cb() never called!
npm ERR! This is an error with npm itself.
解决方案:
1.删除项目中node_modules文件夹
2.删除项目中package-lock.json文件
以管理员权限执行下面的命令:
3.清除npm缓存 npm cache clean --force
4.npm i
更多小知识,可联系蓝队云一起探讨。
售前咨询
售后咨询
备案咨询
二维码
TOP