简体   繁体   English

大家好:我在 nodejs 中启动 Sails 应用程序时遇到问题。 任何人都可以提出他们的见解吗?

[英]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.

相关问题 app.post() 方法在 nodejs 中不起作用。 我无法识别错误 - app.post() method is not working in nodejs. I am unable to identify the error 我正在使用Reactjs,nodejs开发应用程序。 我如何动态地连接两个不同的数据库(MySQL和Couchbase) - I am developing an application using Reactjs, nodejs. How can i connect two different databases(mysql and couchbase) dynamically 我在Bluemix中启动节点应用程序时遇到问题 - I am having trouble starting my node app in Bluemix 我正在尝试将 Java AES 加密转换为 NodeJ。 这是我迄今为止尝试过的 - I am trying to convert Java AES encryption to NodeJs. This is what I have tried so far 我无法通过nodejs在mongodb中插入数据。 请在下面的错误日志中查找 - I am not able insert data in mongodb by nodejs. Please find below the logs of the error 沿时间间隔在数组中分配一个值。 我正在使用nodejs。 - Distribute a value value along time interval in array. I am using nodejs. 我无法卸载nodejs。 在获得错误模块之后,找不到“ node-uuid” - I am not able to uninstall nodejs. After I got the error module not found “node-uuid” 使用 nodejs 将表单数据插入 mysql。 我哪里错了? - Inserting form data into mysql using nodejs. Where am I going wrong? 的NodeJS。 我可以在一个地方处理错误吗? 没有尝试抓住块 - NodeJS. Can I handle errors in one place? Without try and catch blocks 如何使用 nodejs 在 mysql 数据库中插入 npm uniqid 模块。 当我输入代码时,它显示错误“TypeError: uniqid is not a function” - How to insert npm uniqid modules in mysql database using nodejs. when i put on my code it display an error "TypeError: uniqid is not a function"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM