npm install 웹 3 오류

1771 단어 이 태 방bug
오류 코드
Error: Command failed: C:\Users\admin\AppData\Local\Programs\Python\Python36\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:294:12)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:970:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\
odejs\
ode.exe" "C:\\Program Files\
odejs\
ode_modules\
pm\
ode_modules\
ode-gyp\\bin\
ode-gyp.js" "rebuild" gyp ERR! cwd C:\Program Files
odejs
ode_global
ode_modules\web3
ode_modules\scrypt gyp ERR! node -v v10.15.1 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install 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:\Program Files
odejs
ode_cache\_logs\2019-03-01T05_12_14_812Z-debug.log

해결 방법
저 를 괴 롭 혔 던 bug 가 오랫동안 해결 방법 을 찾 지 못 했 습 니 다. 나중에 우연히 오류 코드 를 읽 었 을 때 이것 은 웹 3 가 호 환 되 지 않 기 때 문 입 니 다 python3.x. 다운로드 python2.x 하고 환경 변수 지향 python2.x 을 수정 하면 됩 니 다.

좋은 웹페이지 즐겨찾기