我使用以下命令卸載了grunt。」致命錯誤:無法找到本地咕嚕聲。「當運行「grunt」命令
npm uninstall -g grunt
然後我再次用以下命令安裝grunt。
npm install -g grunt-cli
訪問以下鏈接: https://npmjs.org/package/grunt-html
我想使用上述咕嚕插件
但是當我運行繁重的命令,它給了我以下錯誤:
D:\nodeJS\node_modules\grunt-html>grunt
grunt-cli: The grunt command line interface. (v0.1.6)
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
我看不出這有什麼用jQuery。您必須在項目目錄中安裝grunt,正如文檔中所述:http://gruntjs.com/getting-started#installing-grunt-and-gruntplugins。該錯誤消息還說:*「[...]或grunt 尚未在本地安裝到您的項目中。」*。 – 2013-03-18 18:03:35
我在我的項目目錄中成功安裝了grunt。現在我該如何使用該插件 – 2013-03-18 18:14:32
您安裝插件並按照其項目頁面上的說明進行操作,即您鏈接到的頁面。 – 2013-03-18 18:15:12