question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Grunt init task fails on shell:ember:dev

See original GitHub issue

Hi,

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:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ErisDScommented, Apr 27, 2015

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. Running npm 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.

0reactions
JonathanRosadocommented, Apr 5, 2016

Thanks @ErisDS

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found