在帆升降机上获取咕噜声错误 [英] Getting grunt error on sails lift
本文介绍了在帆升降机上获取咕噜声错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Sails版本: v0.10.0-rc11
error:Grunt :: module.js:340
throw err;
^
错误:找不到模块'/ home / mandeep / freelance / hellos / node_modules / sails / node_modules / grunt-cli / bin / grunt'
at Function.Module._resolveFilename(module .js:338:15)
at Function.Module._load(module.js:280:25)
at Function.Module.runMain(module.js:497:10)
at startup(node.js:119:16)
在node.js:906:3
info:
我曾尝试卸载全局grunt,然后重新安装,但它无法正常工作
解决方案
在Sails安装中已损坏。在你的项目目录下执行:
npm uninstall sails
npm cache clear
npm install sails
这应该解决它。更加焦土的做法是:
rm -rf node_modules
npm cache clear
npm install
确保您的所有依赖项都是最新的。
I am getting this error on sails lift.
Sails version : v0.10.0-rc11
error: Grunt :: module.js:340
throw err;
^
Error: Cannot find module '/home/mandeep/freelance/hellos/node_modules/sails/node_modules/grunt-cli/bin/grunt'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
info:
I have tried uninstalling grunt globally and then re-installing but its not working
解决方案
Looks like something got corrupted in your Sails install. In your project directory do:
npm uninstall sails
npm cache clear
npm install sails
That should fix it. A more scorched-earth approach would be:
rm -rf node_modules
npm cache clear
npm install
To make sure all of your dependencies are up to date.
这篇关于在帆升降机上获取咕噜声错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文