安装jest无法正常工作

时间:2018-06-04 14:33:35

标签: jestjs

我正在尝试在我的macbook pro上安装Jest,但每次我尝试安装时都会收到此代码:

removed 6 packages in 4.475s
Clares-MacBook-Pro:Clare clare$ npm install --save-dev jest
npm WARN saveError ENOENT: no such file or directory, open 
'/Users/clare/package.json'
npm WARN enoent ENOENT: no such file or directory, open 
'/Users/clare/package.json'
npm WARN babel-loader@7.1.4 requires a peer of webpack@2 || 3 || 4 but 
none is installed. You must install peer dependencies yourself.
npm WARN clare No description
npm WARN clare No repository field.
npm WARN clare No README data
npm WARN clare No license field.

+ jest@23.1.0
added 6 packages in 5.731s

我不确定为什么会发生这种情况或如何解决这个问题。有人可以帮忙吗?

0 个答案:

没有答案