Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sails lift ,执行后,报错 #30

Open
961900940 opened this issue Oct 16, 2018 · 9 comments
Open

sails lift ,执行后,报错 #30

961900940 opened this issue Oct 16, 2018 · 9 comments

Comments

@961900940
Copy link

qq 20181016180136

执行命令:sails lift

info: Starting app...

info: No local Sails install detected; using globally-installed Sails.
debug: Warning: Grunt functionality may not work properly with your current configuration.
debug: Run npm install sails-hook-grunt --save to continue using Grunt with your app.
debug:
error: A hook (userconfig) failed to load!
error:
error: As of Sails v1, sails.config.globals._ must be either false or a locally-installed version of Lodash (typically require('lodash')). For more info, see http://sailsjs.com/config/globals

error: Could not load Sails app.
error:
error: Tips:
error: • First, take a look at the error message above.
error: • Make sure you've installed dependencies with npm install.
error: • Check that this app was built for a compatible version of Sails.
error: • Have a question or need help? (http://sailsjs.com/support)

@iammapping
Copy link
Owner

在项目根目录执行 npm install 确保所有依赖安装成功

@961900940
Copy link
Author

[root@iZbp11psgsvkxk5zglhb6jZ xxx]# sails lift --prod

info: Starting app...

这就算启动了吗?
安装完,还没配置,一进网址,nginx 报403 forbiden; 这是对的吗?然后接着往下搞?

@knight0zh
Copy link

@961900940 我遇到了相同的问题,尝试npm install

➜ wedding git:(master) ✗ npm install
npm WARN grunt-contrib-clean@0.5.0 requires a peer of grunt@~0.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-contrib-concat@0.3.0 requires a peer of grunt@~0.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-contrib-copy@0.5.0 requires a peer of grunt@~0.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-contrib-cssmin@0.9.0 requires a peer of grunt@~0.4.1 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-contrib-uglify@0.4.1 requires a peer of grunt@~0.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-rename@0.1.4 requires a peer of grunt@~0.4.1 but none is installed. You must install peer dependencies yourself.

updated 1 package and audited 1698 packages in 4.713s
found 54 vulnerabilities (45 low, 5 moderate, 2 high, 2 critical)
run npm audit fix to fix them, or npm audit for details

@valleylmh
Copy link

现在项目根本跑不起来

@LatitudeMaster
Copy link

LatitudeMaster commented Aug 27, 2020

image
@iammapping 运行一直报这个错误,尝试了很多方法还是不行

@fcbhank
Copy link

fcbhank commented Aug 9, 2021

删掉原来依赖,试试cnpm install?

@LiQiongchao
Copy link

image @iammapping 运行一直报这个错误,尝试了很多方法还是不行

试试 npm i natives

@LatitudeMaster
Copy link

LatitudeMaster commented Oct 11, 2022 via email

@961900940
Copy link
Author

961900940 commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants