Jestjs 尝试安装jest cli时出错

Jestjs 尝试安装jest cli时出错,jestjs,npm-install,Jestjs,Npm Install,当我运行npm install--save dev jest cli来安装jest时,出现以下错误: > jest-cli@0.10.0 postinstall /var/www/html/_learning/react/hacking-book/node_modules/jest-cli > node postinstall.js { [Error: Command failed: /bin/sh -c ./setup.sh /bin/sh: 1: ./setup.sh: not

当我运行
npm install--save dev jest cli
来安装jest时,出现以下错误:

> jest-cli@0.10.0 postinstall /var/www/html/_learning/react/hacking-book/node_modules/jest-cli
> node postinstall.js

{ [Error: Command failed: /bin/sh -c ./setup.sh
/bin/sh: 1: ./setup.sh: not found
]
  killed: false,
  code: 127,
  signal: null,
  cmd: '/bin/sh -c ./setup.sh' }
我从jest GitHub repo()下载了
setup.sh
,并手动运行了它。然后我再次运行了
npm安装
,结果与上面相同。如何安装Jest