Vue脚手架菜鸟级错误 npm run dev

ERROR Failed to compile with 1 errors 

Failed to resolve loader: stylus-loader
You may need to install it.

 依照错误说法: 就是缺少了一个运行依赖;只需按照提示,将其安装就可

如果你在Vue脚手架项目中应用了 lang="stylus" (我这里用了某款插件,然后快捷输入了lang="stylus"),那么你需要在项目中添加该依赖

在项目目录下输入

npm install -save-dev stylus stylus-loader  //-save将模块安装到项目目录下,-dev在package文件的devDependencies节点写入依赖 

照理来说应该是好了。

这次主要如何看错误

原文地址:https://www.cnblogs.com/xuhua123/p/11489758.html