最近需要使用stylus,在安装的过程中遇到些错误,这里做一个总结。
安装命令是
npm install stylus stylus-loader --save-dev
运行命令 一直提示
npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords@3.4.0 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords@3.4.0 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords@3.4.0 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
所依赖的包没有安装运行ajv插件即可
npm install ajv@^5.0.0
然后运行同样的命令安装ajv-keywords@2.1.1即可