javascript - 为什么用mocha测试的时候提示说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! koa-test@1.0.0 test: `mocha`npm ERR! Exit status 1npm ERR! npm ERR! Failed at the koa-test@1.0.0 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:不是这个问题,这是npm排除自身错误的一个假设。你吧所有错误全部贴上来
相关文章:
1. javascript - 在一个a标签内添加了一个单击事件,想在时间里面给这个a标签添加类样式2. android glide asbitmap 在baseadpter中的问题3. Android 高德地图如何实现拖动平移地图时地图上的小图标不动?4. PHP5.5.38.0 Apache2.4.23.0服务崩溃 系统日志php_curl.dll模块报5. javascript - webpack less文件单独打包出错6. python - Push Notification推送服务在手机上测试时候无法收到生产环境的推送7. 按照视频操作下载不了laravel框架8. Docker for Mac 创建的dnsmasq容器连不上/不工作的问题9. java - bin目录有什么特殊含义吗?为什么可执行文件都放在bin目录?10. css - 手机qq打开网页无法使用文件上传功能?

网公网安备