Getting grunt error on sails lift

我怕爱的太早我们不能终老 提交于 2019-12-05 07:15:40

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.

The accepted answer did not work for me; uninstalling, clearing the cache, and reinstalling did not force sails to add the necessary dependency to its node_modules (I think because I have grunt-cli installed globally). Instead I had to go into my_project_directory/node_modules/sails and run npm install grunt-cli

See https://github.com/balderdashy/sails/issues/2059 for more explanation and hopefully some feedback or a bugfix from the sails team.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!