Grunt error and blank page on `sails lift`

machineghost

I followed the (extremely simple) instructions here: http://sailsjs.org/get-started.

However, when I tried running sails lift it just gave me a blank page because I had a problem with my grunt install. I reinstalled it, which fixed the errors, but now I still have a blank page when I visit localhost:1337. I know something is working, because when I stop running sails lift I don't even get a blank page, but I'm not seeing the expected homepage.ejs.

My output when I run sails lift is:

sails lift
info: Starting app...

info: 
info:                .-..-.
info: 
info:    Sails              <|    .-..-.
info:    v0.11.0             |\
info:                       /|.\
info:                      / || \
info:                    ,'  |'  \
info:                 .-'.-==|/_--'
info:                 `--'-------'
info:    __---___--___---___--___---___--___
info:  ____---___--___---___--___---___--___-__
info: 
info: Server lifted in `C:\Users\Me\WebstormProjects\GameWorldCraft`
info: To see your app, visit http://localhost:1337
info: To shut down Sails, press <CTRL> + C at any time.

debug: --------------------------------------------------------
debug: :: Sat Aug 22 2015 12:24:00 GMT-0700 (Pacific Daylight Time)

debug: Environment : development
debug: Port        : 1337
debug: --------------------------------------------------------
info: Gruntfile could not be found.
info: (no grunt tasks will be run.)

Those last two lines seem like they're the problem, but I have no idea how to fix them. Any help would be appreciated.

machineghost

It turned out this was just a human stupidity issue. For future reference, if you fail to cd in to the newProject directory (or, in my case, you cd in to it then back out to fix a Grunt issue) then you will get:

info: Gruntfile could not be found.
info: (no grunt tasks will be run.)

and a blank page. Solution? cd testProject.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Starting Sails.js inside a Docker container causes a Grunt error

分類Dev

Starting Sails.js inside a Docker container causes a Grunt error

分類Dev

Only run my sails.js hook on `sails lift`, not `sails run`

分類Dev

Use page <title/> in surrounding template in Lift

分類Dev

Yii2, Module error page is not show but it show blank page when error 404

分類Dev

Sails.js + grunt doesn't compile assets

分類Dev

Laravel Blank white page

分類Dev

Sails js Error in file Upload

分類Dev

Turbolinks makes page loaded blank

分類Dev

Blank Page on mysqli_query();?

分類Dev

Internet Explorer blank page start

分類Dev

Sailsでのfs.unlinkSyncのGruntエラー

分類Dev

Error running grunt-responsive-images task

分類Dev

Yeoman, Grunt, AngularJS and error 404 on POST form

分類Dev

Blank page when trying to access phpmyadmin

分類Dev

React Router with Private Route render blank page

分類Dev

jQuery ajax POST returning results in blank page

分類Dev

Ember JS app shows blank page

分類Dev

Unwanted blank space generated at the end of page

分類Dev

Why redirect show blank page in model laravel?

分類Dev

WebBrowser Blogger.Com Opens Blank Page

分類Dev

Ubuntu 16.04 phpinfo shows blank Page

分類Dev

CodeIgniter Simple Form Validation Return Blank Page

分類Dev

Sails.js + gruntはアセットをコンパイルしません

分類Dev

Sails.js 0.11 and passport: 'Missing Credentials' error

分類Dev

What causes this error in grunt-contrib-compass after update to Yosemite?

分類Dev

Grunt-brunch server Fatal error: spawn ENOENT

分類Dev

Polymer grunt: Fatal error: spawn dev_appserver.py ENOENT

分類Dev

Blank page when using push() or setRoot() inside a service, Ionic 3

Related 関連記事

ホットタグ

アーカイブ