我是帆船新手。 当我运行命令sails lift时启动服务器显示错误。 我不明白它是什么?
error: ** Grunt :: An error occurred. **
error:
------------------------------------------------------------------------
Aborted due to warnings.
Running "jst:dev" (jst) task
Warning: Cannot find module 'maxmin'
------------------------------------------------------------------------
error: Looks like a Grunt error occurred--
error: Please fix it, then **restart Sails** to continue running tasks (e.g. watching for changes in assets)
error: Or if you're stuck, check out the troubleshooting tips below.
error: Troubleshooting tips:
error:
error: *-> Are "grunt" and related grunt task modules installed locally? Run `npm install` if you're not sure.
error:
error: *-> You might have a malformed LESS, SASS, CoffeeScript file, etc.
error:
error: *-> Or maybe you don't have permissions to access the `.tmp` directory?
error: e.g., `/Users/tayyabzahid/Developer/Scitech/Node/Sails/activityOverlord/.tmp` ?
error:
error: If you think this might be the case, try running:
error: sudo chown -R 501 /Users/tayyabzahid/Developer/Scitech/Node/Sails/activityOverlord/.tmp
它可以做些什么来解决它...... 在此先感谢
答案 0 :(得分:0)
尝试重新安装/使用不同版本的' grunt-contrib-jst'模块。为我工作
答案 1 :(得分:0)
我在全新安装时遇到了同样的错误。 删除所有模块并重新安装以确保它们是最新的解决了我的问题:
rm -rf node_modules
npm install