Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

stdio module not available in v0.8.3? #2652

Closed
braddelcat opened this Issue · 8 comments

3 participants

@braddelcat

I'm on OS X 10.7.4. I had Node v0.8.3. To install vole, I ran:

npm install -g volo

I get this:

/usr/lib/node_modules/npm/lib/utils/config-defs.js:5
, stdio = process.binding("stdio")
^
Error: No such module
at Object. (/usr/lib/node_modules/npm/lib/utils/config-defs.js21)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object. (/usr/lib/node_modules/npm/lib/utils/ini.js:43:18)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)

Reverted to v0.8.2, worked just fine!

@isaacs
Owner

You have a crazy old version of npm. Please upgrade it as soon as possible (or just use the onethat comes with node.)

@isaacs isaacs closed this
@braddelcat

I believe I was using the version of npm that came with Node v0.8.3.

@isaacs
Owner

I am virtually 100% positive that you are not. That line doesn't exist in npm 1.1.43, and npm has printed out completely different logs on error for a very long time now.

Try running which npm to see where it actually lives. My hunch is that you have installed some other version, perhaps in /usr/bin instead of /usr/local/bin or something.

@isaacs
Owner

Try this: cat /usr/lib/node_modules/npm/package.json

@braddelcat

{ "name" : "npm"
, "description" : "A package manager for node"
, "keywords" : [ "package manager", "modules", "install", "package.json" ]
, "version" : "1.0.17"
, "preferGlobal" : true
, "config" : { "publishtest" : false }
, "homepage" : "http://npmjs.org/"
, "author" : "Isaac Z. Schlueter i@izs.me (http://blog.izs.me)"
, "repository" :
{ "type" : "git"
, "url" : "git://github.com/isaacs/npm.git"
}
, "bugs" :
{ "mail" : "npm-@googlegroups.com"
, "web" : "http://github.com/isaacs/npm/issues"
}
, "directories" : { "doc" : "./doc"
, "man" : "./man1"
, "lib" : "./lib"
, "bin" : "./bin"
}
, "main" : "npm"
, "bin" : { "npm" : "./bin/npm.js"
, "npm_g" : "./bin/npm.js"
, "npm-g" : "./bin/npm.js" }
, "dependencies" :
{ "semver" : "1"
, "abbrev" : "1"
, "minimatch" : "0"
, "nopt" : "1"
, "node-uuid" : "1.2" }
, "bundleDependencies" :
[ "semver", "abbrev", "minimatch", "nopt", "node-uuid" ]
, "devDependencies" : { "ronn" : "" }
, "engines" : { "node" : "0.4 || 0.5", "npm" : "1" }
, "scripts" : { "test" : "./test/run.sh"
, "prepublish" : "make doc"
}
, "licenses" :
[ { "type" : "MIT"
, "url" : "http://github.com/isaacs/npm/raw/master/LICENSE"
}
]
}

@braddelcat

I've since found this thing to switch versions of node: https://github.com/creationix/nvm. Everything works when I revert to Node v0.8.2, but whenever I switch back to v0.8.3 or v0.8.4 it doesn't work.

@isaacs
Owner

, "version" : "1.0.17"

That's not the version that ships with 0.8.3.

Remove the npm that's in /usr/bin/npm and /usr/lib/node_modules/npm, and install 1.1.45.

@HazemKhaled

Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.