react-native-ibm-mobilefirst@8.0.2018072413 postinstall D:\Call4Code\MyTestApp \node_modules\react-native-ibm-mobilefirst chmod +x scripts/postinstall.sh && ./scripts/postinstall.sh
'chmod' 不是内部或外部命令, 可运行的程序或批处理文件。 npm WARN eslint-plugin-react-native@3.2.1 需要 eslint@^3.17.0 的对等体 || ^ 4.0.0 但没有安装。您必须自己安装对等依赖项。 npm WARN 可选跳过可选依赖项:fsevents@1.2.4 (node_modules\fse 通风口): npm WARN notsup 跳过可选依赖项:fsevents@ 不受支持的平台 1.2.4:想要 {"os":"darwin","arch":"any"}(当前:{"os":"win32","arch":"x64"} )
npm 错误!代码生命周期
错误!错误号 1
错误! react-native-ibm-mobilefirst@8.0.2018072413 安装后:chmod +x scri
pts/postinstall.sh && ./scripts/postinstall.sh
错误!退出状态 1
错误!
错误!在 react-native-ibm-mobilefirst@8.0.2018072413 安装后失败
脚本。
错误!这可能不是 npm 的问题。可能有额外的日志
上面的ging输出。
npm 错误!可以在以下位置找到此运行的完整日志: 错误! C:\Users\shalvi_kubal\AppData\Roaming\npm-cache_logs\2018-08-16T10 _34_10_364Z-debug.log
最佳答案
目前有一个解决方法,我用来安装 react-native-ibm-mobilefirst 插件。您可以从 macOS 创建您的 React Native 项目,然后从那里安装 react-native-ibm-mobilefirst 插件,然后将该项目文件夹从 macOS 复制到 Windows。然后在项目文件夹中运行“npm install”,它将正常工作。
关于windows - npm install react-native-ibm-mobilefirst --save 给我错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51875422/