我想用Grunt(Yeoman Ionic)運行Ionic應用程序 要執行此操作,腳本運行npm install
和bower install
。然後運行grunt
進行編譯,然後在本地主機上運行grunt serve
。當運行npm install時摩卡與柴的依賴關係
npm install
不會產生與摩卡和柴同行依賴其正在bower install
中止像這樣:
Running "karma:continuous" (karma) task
Warning: Cannot find module 'mocha' Use --force to continue.
Aborted due to warnings.
我跑npm install -g chai mocha
然後npm install
並得到了相同
npm WARN [email protected] requires a peer of [email protected]* but none was installed.
npm WARN [email protected] requires a peer of [email protected]* but none was installed.
即使這是一個警告它在運行時產生錯誤yo ionic
:
npm WARN [email protected] requires a peer of [email protected]* but none was installed.
npm WARN [email protected] requires a peer of [email protected]* but none was installed.
ERROR: Error: ENOENT: no such file or directory, rename '/Users/donjohnson/ionicNom/app/app/css' -> '/Users/donjohnson/ionicNom/app/app/styles'
ERROR: Error: ENOENT: no such file or directory, rename '/Users/donjohnson/ionicNom/app/app/js' -> '/Users/donjohnson/ionicNom/app/app/scripts'
ERROR: Error: ENOENT: no such file or directory, rename '/Users/donjohnson/ionicNom/app/app/img' -> '/Users/donjohnson/ionicNom/app/app/images'
這使得咕嚕服務打開瀏覽器頁面,什麼也沒有:(