node.js - 'grunt' is not recognized as an internal or external command for some windows users -


grunt not working windows users. users facing issues, when run npm install command; prints message below.

e:\worksapce\web>npm install npm warn package.json registers@4.0.0 no repository field. 

when tried npm install -g grunt-cli, think successful.

e:\worksapce\web>npm install -g grunt-cli npm http http://registry.npmjs.org/grunt-cli npm http 304 http://registry.npmjs.org/grunt-cli npm http http://registry.npmjs.org/nopt npm http http://registry.npmjs.org/findup-sync npm http http://registry.npmjs.org/resolve npm http 304 http://registry.npmjs.org/nopt npm http 304 http://registry.npmjs.org/resolve npm http 304 http://registry.npmjs.org/findup-sync npm http http://registry.npmjs.org/abbrev npm http 304 http://registry.npmjs.org/abbrev npm http http://registry.npmjs.org/glob npm http http://registry.npmjs.org/lodash npm http 304 http://registry.npmjs.org/glob npm http 304 http://registry.npmjs.org/lodash npm http http://registry.npmjs.org/inherits npm http http://registry.npmjs.org/minimatch npm http 304 http://registry.npmjs.org/minimatch npm http 304 http://registry.npmjs.org/inherits npm http http://registry.npmjs.org/lru-cache npm http http://registry.npmjs.org/sigmund npm http 304 http://registry.npmjs.org/lru-cache npm http 304 http://registry.npmjs.org/sigmund c:\users\user1234\appdata\roaming\npm\grunt -> c:\users\user1234\appdata\roaming \npm\node_modules\grunt-cli\bin\grunt grunt-cli@0.1.13 c:\users\user1234\appdata\roaming\npm\node_modules\grunt-cli +-- resolve@0.3.1 +-- nopt@1.0.10 (abbrev@1.0.5) +-- findup-sync@0.1.3 (lodash@2.4.1, glob@3.2.11) 

but when run grunt, error message this:

e:\worksapce\web> e:\worksapce\web>grunt 'grunt' not recognized internal or external command, operable program or batch file. 

my package.json this.

{   "author": "company",   "name": "registers",   "version": "4.0.0",   "homepage": "http://abcd.se",   "dependencies": {},   "devdependencies": {     "grunt": "~0.4.4",     "grunt-contrib-jshint": "~0.9.2",     "grunt-contrib-watch": "~0.6.1",     "grunt-contrib-less": "~0.11.0",     "grunt-contrib-clean": "~0.5.0",     "grunt-contrib-copy": "~0.5.0",     "grunt-contrib-concat": "~0.3.0",     "grunt-contrib-uglify": "~0.4.0",     "grunt-ngmin": "0.0.3",     "grunt-contrib-jasmine": "~0.5.2"   } } 

another user succesfully able execute grunt out issues. stands of users.

can 1 tell me has gone wrong.

grunt no longer installed globally. see getting started page more information.

the command below should fix this;

npm install -g grunt-cli 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -