javascript - 无法对 Angular 示例项目运行测试

标签 javascript angularjs node.js angular-material

我已经克隆了Angular Material-Start项目。正如文档所述:

run npm run tests to start all your Karma unit tests. But this conmmand gives me an error:

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\DevSoft\\NodeJs\\node.exe" "C:\\Users\\Taras\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "tests"
npm ERR! node v5.7.1
npm ERR! npm  v3.8.9

npm ERR! missing script: tests
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:

我做错了什么?我如何运行测试?

最佳答案

关于javascript - 无法对 Angular 示例项目运行测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37646324/

相关文章:

angularjs - 让 Karma/Jasmine 为 AngularJS 项目工作

python - npm 使用 2 个版本的 Python

javascript - 如何在 IE 中仅检测鼠标悬停而不检测 touchstart?

javascript - 使用谷歌地图 API 填充经度和纬度

javascript - Angular ng-click 用于 drodpdown 选项标签

javascript - 使用 angular 的 http get 方法时,浏览器端不会自动解压 gzipped json

javascript - 在 morris js 中使用 css 隐藏 x 轴的标签

javascript - 正则表达式: SyntaxError: unterminated string literal

javascript - 如何在 Node 中要求除 npm 主文件以外的文件?

node.js - 带有 Express js 的 Angular 2 cli