gpt4 book ai didi

node.js - AWS服务器上的 sails 升力出现问题

转载 作者:太空宇宙 更新时间:2023-11-03 23:34:17 25 4
gpt4 key购买 nike

当我使用 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

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

最佳答案

您需要 chmod View 目录

关于node.js - AWS服务器上的 sails 升力出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34523036/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com