課程
/前端開發
/Node.js
/node建站攻略(二期)——網站升級
這個錯該怎么處理?
2017-05-06
源自:node建站攻略(二期)——網站升級 7-2
正在回答
1.npm install grunt-mocha-test --save-dev
2.gruntFile里
mochaTest:?{ options:?{ reporter:?'spec' }, src:?['test/**/*.js'] }
grunt.loadNpmTasks('grunt-mocha-test');
grunt.registerTask('test',?['mochaTest']);
3.grunt test
小can 提問者
我也有這個問題 明明安裝了的呀?
他說找不到mocha,你就安裝下嘛
npm?install?mocha?--save-dev
問題補充
舉報
幫助你深入前后端開發留下的迷惑,為進一步自學打下基礎
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2017-05-09
1.npm install grunt-mocha-test --save-dev
2.gruntFile里
3.grunt test
2017-08-28
我也有這個問題 明明安裝了的呀?
2017-07-08
他說找不到mocha,你就安裝下嘛
2017-05-08