在AWS服务器上解决风险问题

当我正在运行sails lift项目时,它显示 –

 Aborted due to warnings. Running "sails-linker:devTpl" (sails-linker) task padding length 4 Warning: Unable to write "views/layout.ejs" file (Error code: EACCES). ------------------------------------------------------------------------ error: Looks like a Grunt error occurred-- error: Please fix it, then **restart Sails** to continue running tasks (eg 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: eg, `/var/myproj/.tmp` ? error: error: If you think this might be the case, try running: error: sudo chown -R 1000 /var/myproj/.tmp 

我已经尝试了所有给定的步骤,如提供访问.tmp和npm install ,当我通过sails debusdebugging代码sails debus显示:

 Grunt :: Error: listen EADDRINUSE :::5858 at Object.exports._errnoException (util.js:860:11) at exports._exceptionWithHostPort (util.js:883:20) at Agent.Server._listen2 (net.js:1234:14) at listen (net.js:1270:10) at Agent.Server.listen (net.js:1366:5) at Object.start (_debug_agent.js:21:9) at startup (node.js:72:9) at node.js:972:3 

奇怪的部分是它运行在我的本地系统和正常(其他)的服务器上非常好,正确的工作。

你需要chmod视图目录