解决 vue安装stylus预处理之后出现的错误 npm install --save !!vue-style-loader!css-loader 的问题

错误代码提示片段

To install it, you can run: npm install --save !!vue-style-loader!css-loader?

解决方案

npm install stylus stylus-loader style-loader --save-dev

出现下面代码 表示安装成功了


C:\Users\User\Desktop\my.serve>npm install stylus stylus-loader style-loader --save-dev
npm WARN [email protected] requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ [email protected]
+ [email protected]
+ [email protected]
added 13 packages from 51 contributors and audited 30856 packages in 34.169s
found 8 vulnerabilities (1 low, 1 moderate, 5 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details

C:\Users\User\Desktop\my.serve>

你可能感兴趣的:(Vue)