nie mogę dostać grunt w ogóle pracować na Windows 7. Postępując zgodnie z instrukcjami na stronie internetowej Grunt (http://gruntjs.com/getting-started) Zabrakło mi:"Błąd krytyczny: nie można znaleźć lokalnego pomruku". 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 .
Po tym systemem „grunt” produkuje następujące dane wyjściowe :
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
wyjście z listy npm grunt jest:
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 zainstalować chrząknięcie" w bieżącym katalogu gi ten sam błąd przy uruchomieniu pomruku.
Jakieś myśli? Rozumiem, że grunt-cli ma szukać lokalnej instalacji, ale nie mogę się domyślić, dlaczego nie może jej znaleźć.
http://stackoverflow.com/questions/13925916/fatal-error-unable-to-find-local-grunt/ 13927654 # 13927654, może to pomóc. – Anshul
Potrzebne jest lokalne wystąpienie pomruku. Zobacz tutaj: http: // stackoverflow.com/a/27115342/687677 – superluminary