[英]Hello Folks: I am having problem in starting sails app in nodejs. can anyone put forth their insights on that?
I tried running the latest version of node and postgresql, but was having problem i deprecated node to 13.12.0 and sails-postgresql to 1.0.2 as mentioned in one of the blog.我尝试运行最新版本的节点和 postgresql,但是遇到了问题,我将节点弃用到 13.12.0,将sails-postgresql 弃用到 1.0.2,如其中一篇博客所述。 still the error is coming.
错误仍然来了。 Stack trace is as below:
堆栈跟踪如下:
sails lift风帆升降机
info: Starting app...信息:正在启动应用程序...
(node:10460) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use node --trace-warnings...
to show where the warning was created) info: Initializing apianalytics
hook... (requests to monitored routes will be logged:) info. (节点:10460)警告:在循环依赖中访问模块导出的不存在属性“padLevels”(使用
node --trace-warnings...
显示警告的创建位置)信息:初始化apianalytics
挂钩...(请求将记录到受监控的路线:) 信息。 ·• Auto-migrating..: (alter) info, Hold tight. ·• 自动迁移..:(更改)信息,紧紧抓住。 this could take a moment: error: error: Error.
这可能需要一点时间:错误:错误:错误。 Sails is taking too long to load.
Sails 加载时间过长。
Troubleshooting tips: -• Were you still reading/responding to an interactive prompt?故障排除提示:-• 您是否仍在阅读/响应交互式提示? (Whoops, sorry. Please lift again and try to respond a bit more quickly.)
(哎呀,对不起。请再次抬起并尝试更快地响应。)
-• Do you have a lot of stuff in assets/
? -• 您在
assets/
中有很多东西吗? Grunt might still be running. Grunt 可能仍在运行。 (Try increasing the hook timeout. Currently it is 40000. eg
sails lift --hookTimeout=80000
) (尝试增加挂钩超时。目前是 40000。例如,
sails lift --hookTimeout=80000
)
-• Is blueprints
a custom or 3rd party hook? -•
blueprints
是自定义的还是第 3 方的钩子? ( If initialize()
is using a callback, make sure it's being called.) (如果
initialize()
正在使用回调,请确保它正在被调用。)
at Timeout.tooLong [as _onTimeout] (C:\Users\dearm\OneDrive\Desktop\my work\sails-logrocket\myapp\node_modules\sails\lib\app\private\loadHooks.js:191:21)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
error: Could not load Sails app.错误:无法加载 Sails 应用程序。 error: error: Tips: error: • First, take a look at the error message above.
error: error: Tips: error: • 首先,看一下上面的错误信息。
error: • Make sure you've installed dependencies with npm install
.错误: • 确保您已使用
npm install
安装依赖项。 error: • Check that this app was built for a compatible version of Sails.错误: • 检查此应用程序是为兼容的 Sails 版本构建的。 error: • Have a question or need help?
错误: • 有问题或需要帮助? ( http://sailsjs.com/support )
( http://sailsjs.com/support )
complete code is here https://github.com/mannawar/sails_app完整的代码在这里https://github.com/mannawar/sails_app
Try using Node version 10 and sails-postgresql version 2.0.0尝试使用 Node 版本 10 和sails-postgresql 版本 2.0.0
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.