Install error on EC2 Instance - Amazon Linux AMI 2012.09 #185

Closed
ajtrichards opened this Issue Jan 22, 2013 · 4 comments

Projects

None yet

3 participants

@ajtrichards

[ec2-user@ip-10-224-93-55 html]$ sudo npm install aws-sdk -g
npm http GET https://registry.npmjs.org/aws-sdk
npm http 304 https://registry.npmjs.org/aws-sdk
npm http GET https://registry.npmjs.org/xml2js
npm http GET https://registry.npmjs.org/xmlbuilder
npm http GET https://registry.npmjs.org/libxmljs
npm http 304 https://registry.npmjs.org/xml2js
npm http 304 https://registry.npmjs.org/xmlbuilder
npm http 304 https://registry.npmjs.org/libxmljs
npm http GET https://registry.npmjs.org/sax
npm http GET https://registry.npmjs.org/bindings/1.0.0
npm http 304 https://registry.npmjs.org/bindings/1.0.0
npm http 304 https://registry.npmjs.org/sax

libxmljs@0.6.1 install /usr/lib/node_modules/aws-sdk/node_modules/libxmljs
node-gyp rebuild

gyp http GET http://nodejs.org/dist/v0.8.18/node-v0.8.18.tar.gz
gyp http 200 http://nodejs.org/dist/v0.8.18/node-v0.8.18.tar.gz
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: EPERM, chmod '/root/.node-gyp/0.8.18'
gyp ERR! System Linux 3.2.30-49.59.amzn1.x86_64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/aws-sdk/node_modules/libxmljs
gyp ERR! node -v v0.8.18
gyp ERR! node-gyp -v v0.8.2
gyp ERR! This is a bug in node-gyp.
gyp ERR! Please file an Issue:
gyp ERR! https://github.com/TooTallNate/node-gyp/issues
npm WARN optional dep failed, continuing libxmljs@0.6.1
aws-sdk@0.9.1-pre.2 /usr/lib/node_modules/aws-sdk
├── xmlbuilder@0.4.2
└── xml2js@0.2.2 (sax@0.5.1)

@TooTallNate
Collaborator

Don't use sudo.

@ajtrichards

I've tried it without sudo and tried it being logged in as the root user

@reachlin

Why it is closed? I am having the same problem with "npm install aws-sdk"

@reachlin

Never mind! I figured it out. Have to run" npm config set registry http://registry.npmjs.org/ "

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment