gruntjs / grunt-docs

Grunt documentation. https://github.com/gruntjs/gruntjs.com
https://gruntjs.com/
79 stars 126 forks source link

Grunt Error #130

Closed marathonrolando closed 9 years ago

marathonrolando commented 9 years ago

Hello. I am running Windows 7 Pro. I have followed this article for references: http://www.ghosthorses.co.uk/production-diary/installing-grunt-on-os-x-and-windows-7/#grunt_win7 and http://gruntjs.com/getting-started

When I run npm uninstall -g grunt, it looks in the c:\users\appdata\roaming\npm\npm_modules folder where grunt is not installed but grunt-cli is. The grunt file is in grunt-cli\bin\ folder. I can copy the grunt file from bin to the npm_modules and the uninstall works.

I will then run the next command npm install -g grunt-cli, I would delete the orginal grunt-cli folder and the command re-creates it.

When I type grunt in the command prompt, it says it cant find grunt. I noticed it is looking again in the c:\users\appdata\roaming\npm\npm_modules folder. So I copy the grunt and grunt.cmd file to that folder and the command runs but now I get the error shown in the screenshot. I do have a .js file in a folder on my desktop. Am i suppose to edit the CMD file to point to that folder or do I have to specify the .js file?

error

sindresorhus commented 9 years ago

Support questions are better asked on StackOverflow: http://stackoverflow.com/questions/tagged/gruntjs Paste in the link to the question here so others can follow ;)