windows - npm install react-native-ibm-mobilefirst --save 给我错误

标签 windows react-native npm ibm-mobilefirst

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/

相关文章:

c++ - 如何从 C++ 中的线程开始(返回)

windows - 检查当前用户 session 中是否有进程正在运行

javascript - 图像意外地未在 React Native 教程中渲染

json - Node package.json "bin"值,命令不起作用

node.js - npm 中的身份验证 token 是什么?

python - 如何在 jenkins 构建中激活 conda 环境

c# - MySQL:连接不同计算机上的多个数据库

https - React-native 0.40+ 获取自签名证书

react-native - 无法在 React Native >= 0.60 中链接 Assets (字体)

node.js - 在Node.js中读取计算机的声音输出并分析声音