尝试安装Karma时出错

时间:2017-06-15 19:30:23

标签: node.js karma-runner karma-jasmine

我在尝试使用$ npm install karma --save-dev

在我的mac上安装业力时遇到错误
events.js:160
          throw er; // Unhandled 'error' event
          ^

npm WARN enoent ENOENT: no such file or directory, open '/Users/os/Documents/Karma:Jasmine/package.json'
npm WARN Karma:Jasmine No description
npm WARN Karma:Jasmine No repository field.
npm WARN Karma:Jasmine No README data
npm WARN Karma:Jasmine No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 install: `node install`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

1 个答案:

答案 0 :(得分:1)

问题是您当前的工作目录中没有任何package.json。尝试输入npm init,然后输入npm install karama --dev