Grunt init task fails on shell:ember:dev
See original GitHub issueHi,
I’ve been installing Vagrant box and because of problems I’ve been researching why Grunt-Vagrant
fails:
https://github.com/TryGhost/Ghost-Vagrant/issues/60
https://github.com/TryGhost/Ghost-Vagrant/issues
So I’ve made a clean clone of Ghost
and just followed instructions from README.md and it appears that described procedure fails when running:
grunt init
...
Running "shell:ember:dev" (shell) task
/bin/sh: /Users/piotrblazejewicz/git/Ghost/core/client/node_modules/.bin/ember: No such file or directory
Warning: Command failed: /bin/sh: /Users/piotrblazejewicz/git/Ghost/core/client/node_modules/.bin/ember: No such file or directory
Use --force to continue.
Aborted due to warnings.
https://github.com/TryGhost/Ghost/blob/master/Gruntfile.js#L284-L285
The init
task is used in other task, so for example grunt validate
described in Ghost-Vagrant
docs also fails.
I’m using up-to-date master with latest commit 6db9826b237e36f72efc03215ac6f2e29cc7769d
and with clean node_modules
directory.
Can someone confirm this?
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:14 (3 by maintainers)
Top Results From Across the Web
grunt.fail - Grunt: The JavaScript Task Runner
The fail API. If something explodes (or is about to explode) inside a task, it can force Grunt to abort. See the exit...
Read more >v3.0.0 - Error with Grunt build and serve tasks with initConfig ...
If the grunt.initConfig({}) in the Gruntfile.js, JET's build and serve tasks encounter the following error and abort the task. Task: build.
Read more >Loading "gruntfile.js" tasks...ERROR >> TypeError: grunt ...
initconfig is not a function Running "uglify:t1" (uglify) task Verifying property uglify.t1 exists in config...ERROR >> Unable to process task.
Read more >grunt-teamcity - npm
The "teamcity" task. Overview. In your project's Gruntfile, add a section named teamcity to the data object passed into grunt.initConfig() .
Read more >Use Grunt in ASP.NET Core | Microsoft Learn
Grunt is a JavaScript task runner that automates script minification, ... Below the initConfig function, add a call to grunt.loadNpmTasks .
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
npm install
doesn’t always complete properly. Any one of a number of things can go wrong, so when getting errors like this the first thing to do is just try again. Runningnpm cache clear
beforehand will delete your local cache of modules to install, just incase something went wrong there.If that doesn’t help you, try deleting the node_modules folders. There’s one at
/node_modules
and one at/core/client/node_modules
. Alternatively you can do:rm -rf core/client
git checkout -- core/client
To delete the client folder, and grab it from git again. This deletes all of the files that have been fetched or built and gives you a clean slate to start from.
Thanks @ErisDS