Mac Fatal Error Unable To Find Local Grunt
Contents |
here for a quick overview of the site Help Center Detailed answers
Fatal Error: Unable To Find Gruntfile.
to any questions you might have Meta Discuss the fatal error unable to find local grunt. ubuntu workings and policies of this site About Us Learn more about Stack Overflow the company
Fatal Error Unable To Find Local Grunt Windows
Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the error: cannot find module 'time-grunt' Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up grunt Fatal error: Unable to find local grunt in Yeoman up vote 48 down vote favorite 29 I installed yeoman and started the error: cannot find module 'load-grunt-tasks' examples which are provided in the official documentation. I went through the suggested operations yo webapp bower install underscore grunt After running grunt I have the message grunt-cli: The grunt command line interface. (v0.1.9) Fatal error: Unable to find local grunt. If you're seeing this message, either a Gruntfile wasn't found or grunt hasn't been installed locally to your project. For more information about installing and configuring grunt, please see the Getting Started guide: http://gruntjs.com/getting-started Note that grunt have been installed with npm install -g grunt-cli and npm install -g grunt yo has generated the Gruntfile.js in the project root, where I am running the command. The package.json has been generated as well: "name": "testyo", "version": "0.0.0", "dependencies": {}, "devDependencies": { "grunt": "~0.4.1", "grunt-contrib-copy": "~0.4.1", "grunt-contrib-concat": "~0.1.3", "grunt-contrib-coffee": "~0.6.5", "grunt-contrib-uglify": "~0.2.0", "grunt-contrib-compass": "~0.2.0", "grunt-contrib-jshint": "~0.4.1", "grunt-contrib-cssmin": "~0.6.0", "grunt-contrib-connect": "~0.2.0", "grunt-contrib-clean": "~0.4.0", "grunt-contrib-htmlmin": "~0.1.3", "grunt-contrib-imagemin": "~0.1.3", "grunt-contrib-watch": "~0.4.
here for a quick overview of the site Help Center Detailed answers to any
Grunt-cli: The Grunt Command Line Interface. (v0.1.13) Fatal Error: Unable To Find Local Grunt.
questions you might have Meta Discuss the workings and policies of grunt-cli: the grunt command line interface (v1.2.0) fatal error: unable to find local grunt. this site About Us Learn more about Stack Overflow the company Business Learn more about hiring
Grunt Hasn't Been Installed Locally To Your Project
developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is http://stackoverflow.com/questions/18114666/grunt-fatal-error-unable-to-find-local-grunt-in-yeoman a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Unable to find local grunt in my meanjs existing project on mac up vote 0 down vote favorite I want to run the meanjs existing project that I got from my http://stackoverflow.com/questions/32455775/unable-to-find-local-grunt-in-my-meanjs-existing-project-on-mac friend in my mac pc but when I run the 'grunt' command then following error is getting: grunt-cli: The grunt command line interface. (v0.1.13) Fatal error: Unable to find local grunt. after searching google I have used these two command below: sudo npm install grunt --save-dev npm install but following errors are getting: Loading "gruntfile.js" tasks...ERROR >> Error: Cannot find module 'load-grunt-tasks' Warning: Task "default" not found. Use --force to continue. Aborted due to warnings. [NB: but grunt is working for the newly created meanjs project on my local mac but not for this old project from my friend] Updated - I have the the package.json file here: { "name": "meanjsapp", "description": "Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js", "version": "0.0.1", "engines": { "node": "0.10.x", "npm": "1.4.x" }, "scripts": { "start": "grunt", "test": "grunt test", "postinstall": "bower install --config.interactive=false" }, "dependencies": { "apn": "^1.7.4", "async": "~0.9.0", "body-parser": "~1.9.0", "bower": "~1.3.8", "chalk": "~0.5", "compression": "~1.2.0", "connect-flas
line interface. (v0.1.13)Fatal error: Unable to find local grunt.If you're seeing this message, either a Gruntfile wasn't found or grunthasn't been installed locally to your project. For http://forums.webhook.com/t/fatal-error-unable-to-find-local-grunt-osx-resolved/44 more information aboutinstalling and configuring grunt, please see the Getting Started guide:http://gruntjs.com/getting-started I went to the getting started page and installed Grunt again as root admin, but I am still seeing the same exact problem. ltsquigs at June 15th, 2014 14:50 — #2 That usually means something failed with the installation (wh create). You can try and run 'wh init sitename' inside of the site directory fatal error to re-install the local grunt. Did you delete the 'node_modules' folder in the directory? Or are you using a service like github to do code versioning across multiple computers? Thanks,Ian samus4145 at June 15th, 2014 16:08 — #3 Thanks for the help Ian. I ended up going through the create process again and it works now. Just some background information, this is only on the same unable to find computer. ltsquigs at June 15th, 2014 16:34 — #4 Glad it worked, although im not sure why the npm packages may have gotten messed up in your directory. Ill add some more feedback on the 'wh serve' command to give instructions to use 'wh init' when these kind of errors occur. thomas at July 1st, 2014 17:06 — #5 Hey Ian, I want to point out I just had the exact same issue. Running an init on the same folder (with Sudo in front of it) definitely fixed the issue. davesnider at July 1st, 2014 17:18 — #6 Thomas, assume you did not install Node, Grunt or Webhook with sudo originally? thomas at July 1st, 2014 17:33 — #7 I installed Node using their installer and after that ran this command: sudo npm install -g grunt-cli wh followed by wh create thomas I'll try to run through the install process again tomorrow on a different machine and will let you know if that worked in one go. Should I use Sudo for every command? davesnider at July 1st, 2014 17:44 — #8 If you install a program using sudo, you'll usually need to use sudo eve