wedding icon indicating copy to clipboard operation
wedding copied to clipboard

sails lift ,执行后,报错

Open 961900940 opened this issue 7 years ago • 9 comments

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)

961900940 avatar Oct 16 '18 10:10 961900940

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

iammapping avatar Oct 17 '18 09:10 iammapping

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

info: Starting app...

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

961900940 avatar Oct 17 '18 09:10 961900940

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

➜ wedding git:(master) ✗ npm install npm WARN [email protected] requires a peer of grunt@~0.4.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] requires a peer of grunt@~0.4.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] requires a peer of grunt@~0.4.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] requires a peer of grunt@~0.4.1 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] requires a peer of grunt@~0.4.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] 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

knight0zh avatar Nov 09 '18 02:11 knight0zh

现在项目根本跑不起来

valleylmh avatar May 28 '20 01:05 valleylmh

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

LatitudeMaster avatar Aug 27 '20 05:08 LatitudeMaster

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

fcbhank avatar Aug 09 '21 13:08 fcbhank

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

试试 npm i natives

LiQiongchao avatar Aug 31 '22 14:08 LiQiongchao

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

LatitudeMaster avatar Oct 11 '22 07:10 LatitudeMaster

您好,我最近无法回复您的邮件。我将在空闲时间,尽快给您回复。

961900940 avatar Oct 11 '22 07:10 961900940