在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 debus
debugging代码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视图目录
- AngularJs图片上传到S3
- 如何在node.js / Javascript中签署Amazon Simple Paybutton
- 为什么nodemailer不能在AWS服务器-NodeJS上工作
- 无法导入模块“索引”:在使用claudia.js时,aws云中的错误监视日志
- 错误:使用AWS Lambda上的gm降低图片质量时,stream会产生空缓冲区
- 在AWS Lambda上以string的身体parsing多部分/表单数据
- 带有node.js的Elastic Beanstalk启动错误
- 按优先级和组值sorting结果,然后筛选结果
- 如何使用AWS lambda和Dynamo db创build地理空间模块