티스토리 뷰

node.js 사용하다가 gyp 이용하는 모듈 설치시 오류. 


$ npm install base64

.

.

.

AttributeError: 'module' object has no attribute 'script_main'

gyp ERR! configure error 

gyp ERR! stack Error: `gyp` failed with exit code: 1

gyp ERR! stack     at ChildProcess.onCpExit (/home/ec2-user/.nvm/v0.10.26/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)

gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)

gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)

gyp ERR! System Linux 3.4.82-69.112.amzn1.x86_64

gyp ERR! command "node" "/home/ec2-user/.nvm/v0.10.26/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"


이런 오류는 필시 python2.6을 사용할 때 나온다. script_main은 python2.7에 딸린 모듈에는 있으므로, 아래와 같은 방법으로 시도해 보자스라.


$ PYTHON=python27 npm install base64


끝.


반응형
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함