mardi 4 août 2015

"Fatal error: Unable to find local grunt." on windows7 professional

f I want to start grunt, I get the following message:

c:\repositories\kunde_1\themes-projekt_1\projekt_1-responsive\source>grunt
grunt-cli: The grunt command 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 grunt
hasn't been installed locally to your project. For more information about
installing and configuring grunt, please see the Getting Started guide:

http://ift.tt/ZERd4b

When running grunt you will see:

C:\Users\dev_user>npm install -g grunt-cli
npm http GET http://ift.tt/KacD7J
npm http 304 http://ift.tt/KacD7J
npm http GET http://ift.tt/Zu2t3i
npm http GET http://ift.tt/1eDekak
npm http GET http://ift.tt/1oU5gRI
npm http 304 http://ift.tt/Zu2t3i
npm http 304 http://ift.tt/1eDekak
npm http 304 http://ift.tt/1oU5gRI
npm http GET http://ift.tt/Zu2pAF
npm http GET http://ift.tt/Zu2pAB
npm http GET http://ift.tt/1hnhOy1
npm http 304 http://ift.tt/Zu2pAF
npm http 304 http://ift.tt/Zu2pAB
npm http 304 http://ift.tt/1hnhOy1
npm http GET http://ift.tt/Zu2vbj
npm http GET http://ift.tt/Zu2tjK
npm http 304 http://ift.tt/Zu2vbj
npm http 304 http://ift.tt/Zu2tjK
npm http GET http://ift.tt/Zu2vbn
npm http GET http://ift.tt/Zu2tjQ
npm http 304 http://ift.tt/Zu2vbn
npm http 304 http://ift.tt/Zu2tjQ
C:\Users\dev_user\AppData\Roaming\npm\grunt -> C:\Users\dev_user\AppData\Roaming\npm\node_modules\grunt-cli\bin\grunt
grunt-cli@0.1.13 C:\Users\dev_user\AppData\Roaming\npm\node_modules\grunt-cli
+-- nopt@1.0.10 (abbrev@1.0.7)
+-- resolve@0.3.1
+-- findup-sync@0.1.3 (lodash@2.4.2, glob@3.2.11)

Entering grunt in user directory:

C:\Users\dev_user>grunt
grunt-cli: The grunt command 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 grunt
hasn't been installed locally to your project. For more information about
installing and configuring grunt, please see the Getting Started guide:

http://ift.tt/ZERd4b

But the same message comes when I enter the project directory!

operating system: windows 7 Professional
npm -version: 1.3.5
node --version: v0.10.15

C:\Users\dev_user>npm ls -g
C:\Users\dev_user\AppData\Roaming\npm
+-- coffee-script@1.9.3
+-- grunt-cli@0.1.13
  +-- findup-sync@0.1.3
  ¦ +-- glob@3.2.11
  ¦ ¦ +-- inherits@2.0.1
  ¦ ¦ +-- minimatch@0.3.0
  ¦ ¦   +-- lru-cache@2.6.5
  ¦ ¦   +-- sigmund@1.0.1
  ¦ +-- lodash@2.4.2
  +-- nopt@1.0.10
  ¦ +-- abbrev@1.0.7
  +-- resolve@0.3.1

The environment variable I have set:

Name of variable: grunt Path: C:\Users\dev_user\AppData\Roaming\npm\grunt then launched new computer

Does anyone have an idea why the message Fatal error: Unable to find local grunt. coming?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire