AWS服务器上的风帆问题

时间:2015-12-30 04:46:32

标签: node.js amazon-web-services sails.js

当我使用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 (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., `/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 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

奇怪的部分是它在我的本地系统和普通(其他)服务器上运行非常精细且正常工作。

1 个答案:

答案 0 :(得分:2)

您需要chmod视图目录