大佬教程收集整理的这篇文章主要介绍了node.js – “致命错误:无法找到本地grunt ”运行“grunt”命令时,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
npm uninstall -g grunt
然后我@R_694_10696@grunt用以下命令。
npm install -g grunt-cli
访问以下链接:
https://npmjs.org/package/grunt-html
我想使用上面的grunt插件
D:\nodeJS\node_modules\grunt-html>grunt grunt-cli: The grunt command linE interface. (v0.1.6) Fatal error: Unable to find local grunt. If you're seeing this message,either a Gruntfile wasn't found or grunt hasn't been installed locally to your project. For more information about installing and configuring grunt,please see the GetTing Started guide: http://gruntjs.com/getTing-started
所以在你的项目文件夹中,你需要安装(最好)最新的grunt版本:
npm install grunt --save-dev
选项–save-dev将向您的package.json添加grunt作为dev依赖。这使得重新安装依赖项变得容易。
以上是大佬教程为你收集整理的node.js – “致命错误:无法找到本地grunt ”运行“grunt”命令时全部内容,希望文章能够帮你解决node.js – “致命错误:无法找到本地grunt ”运行“grunt”命令时所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。