【问题标题】:npm install react-native-ibm-mobilefirst --save gives me errornpm install react-native-ibm-mobilefirst --save 给我错误
【发布时间】:2018-08-16 10:57:51
【问题描述】:

react-native-ibm-mobilefirst@8.0.2018072413 安装后 D:\Call4Code\MyTestApp \node_modules\react-native-ibm-mobilefirst chmod +x 脚本/postinstall.sh && ./scripts/postinstall.sh

'chmod' 未被识别为内部或外部命令, 可运行的程序或批处理文件。 npm WARN eslint-plugin-react-native@3.2.1 需要 eslint@^3.17.0 的 peer || ^ 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 错误!代码生命周期 npm 错误!错误号 1 npm 错误! react-native-ibm-mobilefirst@8.0.2018072413 安装后:chmod +x scri pts/postinstall.sh && ./scripts/postinstall.sh npm 错误!退出状态 1 npm 错误! npm 错误!在 react-native-ibm-mobilefirst@8.0.2018072413 安装后失败 脚本。 npm 错误!这可能不是 npm 的问题。可能有额外的日志 上面的输出。

npm 错误!可以在以下位置找到此运行的完整日志: npm 错误! C:\Users\shalvi_kubal\AppData\Roaming\npm-cache_logs\2018-08-16T10 _34_10_364Z-debug.log

【问题讨论】:

标签: windows react-native npm ibm-mobilefirst


【解决方案1】:

目前有一个解决方法,我用来安装 react-native-ibm-mobilefirst 插件。您可以从 macOS 创建您的 react native 项目,然后从那里安装 react-native-ibm-mobilefirst 插件,然后将该项目文件夹从 macOS 复制到 windows。然后在项目文件夹中运行'npm install',它就可以正常工作了。

【讨论】:

    猜你喜欢
    • 2021-02-05
    • 1970-01-01
    • 2022-10-18
    • 2020-04-13
    • 1970-01-01
    • 1970-01-01
    • 2022-01-06
    • 2022-07-26
    • 2021-02-27
    相关资源
    最近更新 更多