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

问题描述 投票:2回答:1

[email protected] postinstall D:\ Call4Code \ MyTestApp \ node_modules \ react-native-ibm-mobilefirst chmod + x scripts / postinstall.sh && ./scripts/postinstall.sh

'chmod'不被识别为内部或外部命令,可操作程序或批处理文件。 npm WARN [email protected]需要eslint @^3.17.0 ||的同行^ 4.0.0但没有安装。您必须自己安装对等依赖项。 npm WARN可选SKIPPING OPTIONAL DEPENDENCY:[email protected](node_modules \ fse vents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY:不支持的fsevents平台@ 1.2.4:want {“os”:“darwin”,“arch”:“任何“}(当前:{”os“:”win32“,”arch“:”x64“})

错误的ERR!代码ELIFECYCLE npm ERR!错误1 npm ERR! [email protected] postinstall:chmod +x scri pts/postinstall.sh && ./scripts/postinstall.sh npm ERR!退出状态1 npm ERR!错误的ERR!在post-install的[email protected]上失败了。错误的ERR!这可能不是npm的问题。上面可能有额外的日志输出。

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

windows react-native npm ibm-mobilefirst
1个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.