non posso ottenere grugnito funzionare affatto su Windows 7. Seguendo le istruzioni sul sito Grunt (http://gruntjs.com/getting-started) ho eseguito:"Errore irreversibile: impossibile trovare il grugnito locale." su Windows 7
npm uninstall -g grunt-cli
npm uninstall grunt
npm uninstall -g grunt-init
git clone [email protected]:gruntjs/grunt-init-jquery.git c:/Users/me/.grunt-init/jquery
npm install -g grunt-cli
grunt-init jquery
npm install .
Dopo di che, l'esecuzione di "grugnito" produce il seguente output :
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
l'uscita di lista NPM grugnito è:
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] 'repositories' (plural) Not supported.
npm WARN package.json Please pick one as the 'repository' field
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
C:\Users\me\AppData\Roaming\npm
└─┬ [email protected]
└── [email protected]
Running "NPM installare grugnito" nella corrente gi directory ves lo stesso errore quando si esegue grunt.
Qualche idea? La mia comprensione è che grunt-cli è pensato per cercare un'installazione locale di grunt, ma non riesco a capire perché non riesca a trovarlo.
http://stackoverflow.com/questions/13925916/fatal-error-unable-to-find-local-grunt/ 13927654 # 13927654, questo può aiutare. – Anshul
È necessaria un'istanza locale di grunt. Vedi qui: http: // StackOverflow.it/a/27115342/687677 – superluminary