mardi 21 avril 2015

TypeError: Object #

I am attempting to install the SDK for Javascript using npm on my EC2 instance.

I have Node.js installed (v 0.10.33) and npm installed as well. I have been able to install other things such as Express.js without issue. However when trying to install the AWS SDK for Node I get the following error:

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object #<Object> has no method 'tmpDir'
at /usr/lib/node_modules/npm/node_modules/osenv/osenv.js:49:13
at Object.tmpdir (/usr/lib/node_modules/npm/node_modules/osenv/osenv.js:14:15)
at Object.<anonymous> (/usr/lib/node_modules/npm/lib/config/defaults.js:76:18)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at Object.<anonymous> (/usr/lib/node_modules/npm/lib/config/core.js:4:18)

Does anyone have any idea what is causing this error or what I can do to fix it?




Aucun commentaire:

Enregistrer un commentaire