Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
376 views
in Technique[技术] by (71.8m points)

javascript - 无法在新的Win 10 1903中安装expo-cli(can't install expo-cli in the new win 10 1903)

I installed node js 13.2 and I even tried installing yarn.

(我安装了节点js 13.2,甚至尝试安装yarn。)

In visual studio installer I ticked C++ build tools and node js msbuild.

(在Visual Studio安装程序中,我勾选了C ++构建工具和node js msbuild。)

Yet whenever I install expo-cli globally I get these error:

(但是,每当我全局安装expo-cli时,都会出现以下错误:)

sharp.cc
  utilities.cc
  win_delay_load_hook.cc
C:UsersuPandaAppDataRoaming
pm
ode_modulesexpo-cli
ode_modulessharpsrcstats.cc(130,1): error C2661: 'v8::Obj
ect::Set': no overloaded function takes 2 arguments [C:UsersuPandaAppDataRoaming
pm
ode_modulesexpo-cli
ode_mod
ulessharpuildsharp.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:Program Files (x86)Microsoft Visual Studio2019BuildToolsMSBuildCurrentBinMSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:Program Files
odejs
ode_modules
pm
ode_modules
ode-gyplibuild.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:UsersuPandaAppDataRoaming
pm
ode_modulesexpo-cli
ode_modulessharp
gyp ERR! node -v v13.2.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok

And this at the end:

(最后是这样的:)

> [email protected] postinstall C:UsersuPandaAppDataRoaming
pm
ode_modulesexpo-cli
ode_modulesenvsub
> test -d .git && cp gitHookPrePush.sh .git/hooks/pre-push || true

'test' is not recognized as an internal or external command,
operable program or batch file.
'true' is not recognized as an internal or external command,
operable program or batch file.

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modulesexpo-cli
ode_modulessharp):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `test -d .git && cp gitHookPrePush.sh .git/hooks/pre-push || true`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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:UsersuPandaAppDataRoaming
pm-cache\_logs2019-12-01T12_34_33_996Z-debug.log

C:Windowssystem32>expo
internal/modules/cjs/loader.js:957
    throw err;
    ^
  ask by UPanda translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...