2017-12-21 23 views
-1

Mac에 Hyperledger Composer 개발 환경을 설치하려고합니다. 내가 명령으로 CLI 도구를 설치하려고 할 때 :MAC OS에서 생성기 하이퍼 생성 프로그램을 설치하는 중 오류가 발생했습니다.

NPM은 다음과 같은 오류 메시지가 나타 -g 작곡가 CLI

를 설치합니다. 성공하지 않고 노드 버전을 6/7로 롤백하려고했습니다. 사용 MZ 또는 약속의 지원 3.0^FS-추가

npm WARN deprecated [email protected]: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in. 


> [email protected] install /usr/local/lib/node_modules/generator-hyperledger-composer/node_modules/pkcs11js 
> node-gyp rebuild 

gyp ERR! configure error 

gyp ERR! stack Error: Python executable "/Users/jloo/anaconda/bin/python" is v3.5.1, which is not supported by gyp. 

gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0. 

gyp ERR! stack  at PythonFinder.failPythonVersion (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:492:19) 

gyp ERR! stack  at PythonFinder.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:474:14) 

gyp ERR! stack  at ChildProcess.exithandler (child_process.js:264:7) 

gyp ERR! stack  at ChildProcess.emit (events.js:159:13) 

gyp ERR! stack  at maybeClose (internal/child_process.js:943:16) 

gyp ERR! stack  at Socket.stream.socket.on (internal/child_process.js:363:11) 

gyp ERR! stack  at Socket.emit (events.js:159:13) 

gyp ERR! stack  at Pipe._handle.close [as _onclose] (net.js:558:12) 

gyp ERR! System Darwin 17.3.0 

gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" 

gyp ERR! cwd /usr/local/lib/node_modules/generator-hyperledger-composer/node_modules/pkcs11js 

gyp ERR! node -v v9.2.1 

gyp ERR! node-gyp -v v3.6.2 

gyp ERR! not ok 

npm ERR! code ELIFECYCLE 

npm ERR! errno 1`enter code here` 

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 
+0

참조하십시오 [내가 좋은 질문을 어떻게해야합니까?] (https://stackoverflow.com/help/how- 묻다). 오류 로그 붙여 넣기가 불충분합니다. – Galen

답변

0

사용 NVM 및 노드 버전 8을 설치 - 안정 :

NPM은 더 이상 사용되지 [email protected]을 경고한다. 그리고 해당 노드 버전을 사용하여 실행 해보십시오.