javascript - 為什么用mocha測試的時(shí)候提示說nodejs版本過低
問題描述
'scripts': { 'test': 'mocha' }, 'author': '', 'license': 'ISC', 'description': '', 'dependencies': { 'koa': '^2.2.0' }, 'devDependencies': { 'mocha':'^3.2.0', 'supertest': '3.0.0' }
Darwin 16.5.0npm ERR! argv '/usr/local/bin/node' '/usr/local/bin/npm' 'run' 'test'npm ERR! node v7.8.0npm ERR! npm v4.2.0npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! [email protected] test: `mocha`npm ERR! Exit status 1npm ERR! npm ERR! Failed at the [email protected] test script ’mocha’.npm ERR! Make sure you have the latest version of node.js and npm installed.npm ERR! If you do, this is most likely a problem with the koa-test package,npm ERR! not with npm itself. Tell the author that this fails on your system:npm ERR! mochanpm ERR! You can get information on how to open an issue for this project with:npm ERR! npm bugs koa-testnpm ERR! Or if that isn’t available, you can get their info via:npm ERR! npm owner ls koa-testnpm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request:npm ERR! /Users/rennaiqian/.npm/_logs/2017-04-11T01_44_49_682Z-debug.log
一開始用yarn install后來出問題了使用的是npm install
問題解答
回答1:不是這個(gè)問題,這是npm排除自身錯(cuò)誤的一個(gè)假設(shè)。你吧所有錯(cuò)誤全部貼上來
相關(guān)文章:
1. mysql - 新浪微博中的關(guān)注功能是如何設(shè)計(jì)表結(jié)構(gòu)的?2. angular.js - 關(guān)于$apply()3. MySQL數(shù)據(jù)庫中文亂碼的原因4. dockerfile - [docker build image失敗- npm install]5. angular.js使用$resource服務(wù)把數(shù)據(jù)存入mongodb的問題。6. 如何解決Centos下Docker服務(wù)啟動無響應(yīng),且輸入docker命令無響應(yīng)?7. nignx - docker內(nèi)nginx 80端口被占用8. angular.js - Ionic 集成crosswalk后生成的apk在android4.4.2上安裝失敗???9. android-studio - Android Studio 運(yùn)行項(xiàng)目的時(shí)候一堆警告,跑步起來!?10. 我在centos容器里安裝docker,也就是在容器里安裝容器,報(bào)錯(cuò)了?
