无法安装'react-native-the-perfect-app'-React Native

时间:2019-03-29 09:32:42

标签: react-native npm package install

我正在尝试npm安装react-native-the-perfect-app --save,但失败并显示错误:

    D:\Doc\react-native>npm install react-native-the-perfect-app@v5.0.0 --save

> react-native-the-perfect-app@5.0.0 postinstall D:\Doc\react-native\node_modules\react-native-the-perfect-app
> bash postinstall.sh

'bash' is not recognized as an internal or external command,
operable program or batch file.
npm WARN react-native@0.58.3 requires a peer of react@16.6.3 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-native-the-perfect-app@5.0.0 postinstall: `bash postinstall.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-native-the-perfect-app@5.0.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\bS\AppData\Roaming\npm-cache\_logs\2019-03-29T09_16_57_742Z-debug.log

有什么主意吗?顺便说一句,我尝试指定版本,但没有指定版本,但失败的方式相同。

0 个答案:

没有答案