我有一个Sails Api,它第一次启动就像一个魅力。 按CTRL + C停止它,然后尝试再次启动它。它的作品,但是,Grunt错误SailsJS使用--no-frontend解除
error: ** Grunt :: An error occurred. **
error:
------------------------------------------------------------------------
Aborted due to warnings.
Running "clean:dev" (clean) task
Warning: Cannot delete files outside the current working directory.
------------------------------------------------------------------------
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., `folderthingy` ?
error:
error: If you think this might be the case, try running:
error: sudo chown -R 501 folderthingy
嗯,我检查一切,该文件夹只是我自己的,有足够的权利。我也为了测试目的而搭建了777,但这并没有改变。
然后,我决定清除.tmp文件夹的所有内容,并尝试重新启动。这就像一个魅力,.tmp再次填充,当我停止服务器,试图重新启动它,我又得到了完全相同的错误消息!
我用--no-frontend选项启动,所以实际上我不明白它为什么要加载grunt。
这究竟是为什么?这里有什么问题?
修正显示在这里:http:// stackoverflow。com/questions/35624877/sails-js-permissions – cfl