從git構建yeoman項目結算時遇到問題。我試圖採取yeoman項目的git結賬並運行grunt serve。以下是這種情況下,隨後的錯誤描述從git checkout構建yeoman項目
場景描述:
PERSON1創建使用喲角自耕農angularjs項目。 grunt serve正在工作正常Person1的電腦。 Person1將代碼推送到git,以便其他團隊成員可以使用它。當PERSON2取的git(GIT中克隆< URL>)的結帳發生
問題。該咕嚕在檢出的副本服務命令會給出以下錯誤:
$ grunt serve
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://gruntjs.com/getting-started
我想:npm install grunt
我得到了以下錯誤:
grunt serve
Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module 'load-grunt-tasks'
Warning: Task "serve" not found. Use --force to continue.
Aborted due to warnings.
使用的工具:
$ grunt -version
grunt-cli v0.1.13
grunt v0.4.4
$ yo -v
1.1.2
[email protected]:testing$ npm -version
1.4.4
ls -l on the di本館
drwxrwxr-x app
-rw-rw-r-- bower.json
-rw-rw-r-- Gruntfile.js
-rw-rw-r-- karma.conf.js
-rw-rw-r-- karma-e2e.conf.js
drwxrwxr-x node_modules
-rw-rw-r-- package.json
drwxrwxr-x test
我需要幫助完成從git checkout構建項目的任務,以便我可以繼續開發。
感謝Charminbaer解釋命令。它有助於理解yeoman如何管理依賴關係。 :) –
歡迎你,很高興我能幫忙! :) – Charminbear