在写这个vue项目,stylus这个不过深刻的给我上了一课什么叫:前端才是真正费时间的!!!还有真的要细心
我遇到的bug有:
1、安装stylus时:npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modulesvents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fseve1.2.9: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:"x)
处理:这个可以忽略,不影响使用
2、安装stylus时: run npm audit fix
to fix them, or npm audit
for details
处理:按照提示运行npm audit fix,运行后还有提示,就按照提示的命令继续在git上运行
3、npm WARN css-loader@3.1.0 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN url-loader@2.1.0 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
处理1:根据报错安装指定版本,命令:npm install webpack@版本号 -g<