我不能讓咕嚕能在Windows 7在所有的工作之後我已經運行繁重的網站(http://gruntjs.com/getting-started)上的說明:」致命錯誤:無法找到本地咕嚕聲。「在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 .
之後,運行「咕嚕」產生下面的輸出:
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
NPM列表咕嚕的輸出是:
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]
運行 「故宮安裝咕嚕」 在當前目錄GI運行grunt時會出現同樣的錯誤。
有什麼想法?我的理解是,grunt-cli是爲了尋找一個本地的grunt安裝,但我找不出爲什麼找不到它。
http://stackoverflow.com/questions/13925916/fatal-error-unable-to-find-local-grunt/嘗試13927654#13927654,這可能有所幫助。 – Anshul
你需要一個本地的grunt實例。看到這裏:http:// stackoverflow。com/a/27115342/687677 – superluminary