1 NPM-Hbuilder 编译小程序错误汇总
大家好,谁是无知的人,今天又是搞bug的一天,然而结局万万没想到啊
data 2.15;花费时间 很多个小时
C:\WINDOWS\system32>npm uninstall sass-loader
removed 70 packages in 1s
C:\WINDOWS\system32>npm install sass-loader --save-dev
added 70 packages in 4s
1 This version of npm is compatible with lockfileVersion@1
\
C:\WINDOWS\system32>cnpm uninstall image-webpack-loader -D
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
npm WARN system32 No description
npm WARN system32 No repository field.
npm WARN system32 No license field.
removed 67 packages and updated 3 packages in 1.708s
3 packages are looking for funding
run `npm fund` for details
C:\WINDOWS\system32>cnpm uninstall image-webpack-loader -D
npm WARN sass-loader@12.5.0 requires a peer of webpack@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN system32 No description
npm WARN system32 No repository field.
npm WARN system32 No license field.
2 deprecate image-webpack-loader@8.1.0 › imagemin-optipng@8.0.0...
\
\
3 npm WARN sass-loader@12.5.0 requires a peer of webpack@^5.0.0 but none is installed...
\
C:\WINDOWS\system32>npm install webpack@^5.0.0 -go
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
added 100 packages, removed 650 packages, and changed 232 packages in 42s
4 Error: \?\D:\300IT\nodejs\node_cache\node-sass\7.0.1\win32-x64-93_binding.node is not a valid Win32 application.
\
这是版本冲突的问题
5 Hbulderx node-sass
\
D:\300IT\nodejs\node_cache\node-sass\7.0.1>curl -o win32-x64-93_binding.node http://cdn.npm.taobao.org/dist/node-sass/v4.7.2/win32-ia32-72_binding.node
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 262 100 262 0 0 217 0 0:00:01 0:00:01 --:--:-- 217
仍然有错如下
6 Hbulider 完全卸载重装后成功!
\
2 nodejs 完全卸载重装
\
卸载
- c://user/xxx/node_models
- c://Program Fiels/nodejs
- c://user/xxx/AppData/Roaming/npm
- c://user/xxx/AppData/Roaming/npm-cache
卸载
安装
3 node-sass 安装之路,好漫长!!!
\
1 丢包错误 此错误被1人认为可以忽略
4 Nodejs Express 目录结构
5 HBuilderX 开发微信小程序
6 vue-cli 命令行安装 uni-app
7 NPM install -save 和 -save-dev 傻傻分不清
\