npm安装stylus错误解决方案

最近需要使用stylus,在安装的过程中遇到些错误,这里做一个总结。
安装命令是

	npm install stylus stylus-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 [email protected] requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] 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

然后运行同样的命令安装[email protected]即可

你可能感兴趣的:(前端)