npm install expo-cli --global
我收到以下错误:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! envsub@3.1.0 postinstall: `test -d .git && cp gitHookPrePush.sh .git/hooks/pre-push || true`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the envsub@3.1.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\User\AppData\Roaming\npm-cache\_logs\2019-12-01T12_11_45_118Z-debug.log
节点和npm版本:
node --version
v12.13.1
npm --version
6.12.1
根据其官方网站,我正在尝试在Windows 10上安装expo-cli:
npm install expo-cli --global我收到以下错误:
43056详细Windows_NT 10.0.18362 43057详细argv“ C:\ Program Files \ nodejs \ node.exe”“ C:\ Program Files \ nodejs \ node_modules \ npm \ bin \ npm-cli.js”“安装”“ expo-cli “” --global“ 43058详细节点v12.13.1 43059详细npm v6.12.1 43060错误代码ELIFECYCLE 43061错误errno 1 43062错误envsub@3.1.0安装后:test -d .git && cp gitHookPrePush.sh .git/hooks/pre-push || true
43062错误退出状态1 43063错误envsub@3.1.0失败安装后脚本。43063错误这可能不是npm的问题。上面可能还有其他日志记录输出。43064详细出口[1,true]我正在使用python版本:
python --version Python 3.8.0以及node和npm版本:
节点-版本v12.13.1
npm --version 6.12.1 **您的建议是什么?
**