Every npm action on Ubuntu (installed without errors) #1445

Closed
rudiedirkx opened this Issue Sep 22, 2011 · 10 comments

Projects

None yet

4 participants

@rudiedirkx

Full error from error log (/home/rudie/nodes/npm-debug.log):

info it worked if it ends with ok
verbose cli [ 'node', '/usr/local/bin/npm' ]
info using npm@1.0.30
info using node@v0.5.8-pre
verbose config file /home/rudie/.npmrc
verbose config file /usr/local/etc/npmrc
ERR! Error: ENOENT, Success '/usr/local/lib/node_modules/npm/man1/'
ERR! Report this *entire* log at:
ERR!     <http://github.com/isaacs/npm/issues>
ERR! or email it to:
ERR!     <npm-@googlegroups.com>
ERR!
ERR! System Linux 2.6.32-24-generic
ERR! command "node" "/usr/local/bin/npm"
ERR! cwd /home/rudie/nodes
ERR! node -v v0.5.8-pre
ERR! npm -v 1.0.30
verbose exit [ 1, true ]

I built npm from Github (master) with make install.

@BenWagener

I've got the same problem if I try to install a module globaly. First I couldn't install npm with
curl http://npmjs.org/install.sh sh
Then I installed npm with
$ git clone http://github.com/isaacs/npm.git
$ cd npm
$ sudo make install

And if I now try to install a module globaly I get an error and a npm-debug.log like this:
info it worked if it ends with ok
verbose cli [ 'node', '/usr/bin/npm', 'install', '-g', 'express' ]
info using npm@1.0.30
info using node@v0.4.12
verbose /usr/bin/node node symlink
verbose config file /home/ben/.npmrc
verbose config file /usr/etc/npmrc
verbose into /usr/lib [ 'express' ]
verbose cache add express
verbose cache add [ 'express', null ]
silly cache add: name, spec, args [ undefined, 'express', [ 'express', null ] ]
verbose parsed url { pathname: 'express', href: 'express' }
info addNamed [ 'express', '' ]
verbose addNamed [ null, '' ]
verbose GET express
verbose raw, before any munging express
verbose url resolving [ 'https://registry.npmjs.org/', './express' ]
verbose url resolved https://registry.npmjs.org/express
verbose etag "DK4D4LLGWH7J0N6131G7UTAJ2"
silly get cb [ 304,
silly get cb { server: 'CouchDB/1.1.0 (Erlang OTP/R14B03)',
silly get cb etag: '"DK4D4LLGWH7J0N6131G7UTAJ2"',
silly get cb date: 'Thu, 22 Sep 2011 16:48:10 GMT',
silly get cb 'content-length': '0' } ]
verbose etag express from cache
verbose GET express/2.4.6
verbose raw, before any munging express/2.4.6
verbose url resolving [ 'https://registry.npmjs.org/', './express/2.4.6' ]
verbose url resolved https://registry.npmjs.org/express/2.4.6
verbose etag "DK4D4LLGWH7J0N6131G7UTAJ2"
silly get cb [ 304,
silly get cb { server: 'CouchDB/1.1.0 (Erlang OTP/R14B03)',
silly get cb etag: '"DK4D4LLGWH7J0N6131G7UTAJ2"',
silly get cb date: 'Thu, 22 Sep 2011 16:48:11 GMT',
silly get cb 'content-length': '0' } ]
verbose etag express/2.4.6 from cache
verbose bin dist [ '0.4-ares1.7.4-ev4.4-openssl0.9.8o-v83.1.8.26-linux-2.6.38-11-generic',
verbose bin dist { shasum: 'df8152c5a40bd89ad74ab07e5ef999fac5a00916',
verbose bin dist tarball: 'http://registry.npmjs.org/express/-/express-2.4.6.tgz' } ]
silly testEngine { name: 'express',
silly testEngine description: 'Sinatra inspired web development framework',
silly testEngine version: '2.4.6',
silly testEngine author:
silly testEngine { name: 'TJ Holowaychuk',
silly testEngine email: 'tj@vision-media.ca' },
silly testEngine contributors:
silly testEngine [ { name: 'TJ Holowaychuk',
silly testEngine email: 'tj@vision-media.ca' },
silly testEngine { name: 'Aaron Heckmann',
silly testEngine email: 'aaron.heckmann+github@gmail.com' },
silly testEngine { name: 'Ciaran Jessup', email: 'ciaranj@gmail.com' },
silly testEngine { name: 'Guillermo Rauch', email: 'rauchg@gmail.com' } ],
silly testEngine dependencies:
silly testEngine { connect: '>= 1.5.2 < 2.0.0',
silly testEngine mime: '>= 0.0.1',
silly testEngine qs: '>= 0.3.1' },
silly testEngine devDependencies:
silly testEngine { 'connect-form': '0.2.1',
silly testEngine ejs: '0.4.2',
silly testEngine expresso: '0.7.2',
silly testEngine hamljs: '0.5.1',
silly testEngine jade: '0.11.0',
silly testEngine stylus: '0.13.0',
silly testEngine should: '0.2.1',
silly testEngine 'express-messages': '0.0.2',
silly testEngine 'node-markdown': '>= 0.0.1',
silly testEngine 'connect-redis': '>= 0.0.1' },
silly testEngine keywords: [ 'framework', 'sinatra', 'web', 'rest', 'restful' ],
silly testEngine repository:
silly testEngine { type: 'git',
silly testEngine url: 'git://github.com/visionmedia/express.git' },
silly testEngine main: 'index',
silly testEngine bin: { express: './bin/express' },
silly testEngine scripts: { test: 'make test', prepublish: 'npm prune' },
silly testEngine engines: { node: '>= 0.4.1 < 0.5.0' },
silly testEngine id: 'express@2.4.6',
silly testEngine _engineSupported: true,
silly testEngine _npmVersion: '1.0.30',
silly testEngine _nodeVersion: 'v0.4.12',
silly testEngine _defaultsLoaded: true }
verbose caching /home/ben/.npm/express/2.4.6/package/package.json
verbose loadDefaults express@2.4.6
silly resolved [ { name: 'express',
silly resolved description: 'Sinatra inspired web development framework',
silly resolved version: '2.4.6',
silly resolved author:
silly resolved { name: 'TJ Holowaychuk',
silly resolved email: 'tj@vision-media.ca' },
silly resolved contributors:
silly resolved [ { name: 'TJ Holowaychuk',
silly resolved email: 'tj@vision-media.ca' },
silly resolved { name: 'Aaron Heckmann',
silly resolved email: 'aaron.heckmann+github@gmail.com' },
silly resolved { name: 'Ciaran Jessup', email: 'ciaranj@gmail.com' },
silly resolved { name: 'Guillermo Rauch', email: 'rauchg@gmail.com' } ],
silly resolved dependencies:
silly resolved { connect: '>= 1.5.2 < 2.0.0',
silly resolved mime: '>= 0.0.1',
silly resolved qs: '>= 0.3.1' },
silly resolved devDependencies:
silly resolved { 'connect-form': '0.2.1',
silly resolved ejs: '0.4.2',
silly resolved expresso: '0.7.2',
silly resolved hamljs: '0.5.1',
silly resolved jade: '0.11.0',
silly resolved stylus: '0.13.0',
silly resolved should: '0.2.1',
silly resolved 'express-messages': '0.0.2',
silly resolved 'node-markdown': '>= 0.0.1',
silly resolved 'connect-redis': '>= 0.0.1' },
silly resolved keywords: [ 'framework', 'sinatra', 'web', 'rest', 'restful' ],
silly resolved repository:
silly resolved { type: 'git',
silly resolved url: 'git://github.com/visionmedia/express.git' },
silly resolved main: 'index',
silly resolved bin: { express: './bin/express' },
silly resolved scripts: { test: 'make test', prepublish: 'npm prune' },
silly resolved engines: { node: '>= 0.4.1 < 0.5.0' },
silly resolved _id: 'express@2.4.6',
silly resolved _engineSupported: true,
silly resolved _npmVersion: '1.0.30',
silly resolved _nodeVersion: 'v0.4.12',
silly resolved _defaultsLoaded: true } ]
info into /usr/lib express@2.4.6
info installOne express@2.4.6
info unbuild /usr/lib/node_modules/express
verbose from cache /home/ben/.npm/express/2.4.6/package/package.json
verbose mkdir (expected) error ENOENT, No such file or directory '/usr/lib/node_modules/___express.npm'
verbose unpack
uid, gid [ undefined, undefined ]
verbose unpackTarget /usr/lib/node_modules/express
ERR! Could not create /usr/lib/node_modules/___express.npm
ERR! error installing express@2.4.6 Error: EACCES, Permission denied '/usr/lib/node_modules/___express.npm'
info unbuild /usr/lib/node_modules/express
verbose installOne cb express@2.4.6
ERR! Error: EACCES, Permission denied '/usr/lib/node_modules/___express.npm'
ERR! Report this entire log at:
ERR! http://github.com/isaacs/npm/issues
ERR! or email it to:
ERR! npm-@googlegroups.com
ERR!
ERR! System Linux 2.6.38-11-generic
ERR! command "node" "/usr/bin/npm" "install" "-g" "express"
ERR! cwd /home/ben/nodejs
ERR! node -v v0.4.12
ERR! npm -v 1.0.30
verbose exit [ 1, true ]

@isaacs
npm member

@BenWagener That is a different problem. Run sudo npm install express -g and it'll work.

@rudiedirkx Run make doc before make install. Fix coming very soon

@BenWagener

@isaacs: Thank you, that works for me.

@rudiedirkx

If only (or am I being stupid?)...

rudie@rudie-lpt:~/npm$ sudo make doc
[sudo] password for rudie:
scripts/doc-build.sh doc/home.md man1/home.1
ronn@0.3.6 ./node_modules/ronn
âââ opts@1.2.1
The "sys" module is now called "util". It should have a similar interface.

node.js:208
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
TypeError: object is not a function
    at RegExp.CALL_NON_FUNCTION (native)
    at Markdown.splitBlocks [as split_blocks] (/home/rudie/npm/node_modules/ronn/lib/ext/markdown.js:152:25)
    at Markdown.toTree (/home/rudie/npm/node_modules/ronn/lib/ext/markdown.js:225:21)
    at Object.parse (/home/rudie/npm/node_modules/ronn/lib/ext/markdown.js:66:13)
    at new <anonymous> (/home/rudie/npm/node_modules/ronn/lib/ronn.js:23:15)
    at render (/home/rudie/npm/node_modules/ronn/bin/ronn.js:72:13)
    at Object.<anonymous> (/home/rudie/npm/node_modules/ronn/bin/ronn.js:62:2)
    at Module._compile (module.js:425:26)
    at Object..js (module.js:443:10)
    at Module.load (module.js:344:31)
make: *** [man1/home.1] Error 1
@isaacs isaacs closed this in 205a056 Sep 22, 2011
@isaacs
npm member

The published version of ronn doesn't work with node 0.5. It's fixed on my fork, which has been pulled upstream, but not published to npm.

@rudiedirkx

So what now? Get node 0.4? Download new npm? I was kinda looking forward to trying out node apps, but apparantly without npm you can't.

@isaacs
npm member

@rudiedirkx Pull the latest npm and try again. It's fixed in 205a056

@isaacs
npm member

@rudiedirkx Also, you definitely can use node apps without npm. You just have to put them in a node_modules folder yourself.

@ceralena

I've installed the latest version of Node available through Homebrew (v.0.4.12), the latest version of NPM (1.0.30) and I installed with sudo npm install -g express, and I get the following error when trying to 'require('express') in node:

node.js:134
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
Error: Cannot find module 'express'
    at Function._resolveFilename (module.js:326:11)
    at Function._load (module.js:271:25)
    at require (module.js:355:19)
    at Object.<anonymous> (/Users/Work/Sandbox/express-test.js:1:73)
    at Module._compile (module.js:411:26)
    at Object..js (module.js:417:10)
    at Module.load (module.js:343:31)
    at Function._load (module.js:302:12)
    at Array.<anonymous> (module.js:430:10)
    at EventEmitter._tickCallback (node.js:126:26)
@isaacs
npm member

@Cerales Your problem is not related to the original issue here. Please post new issues as new issues, not as comments on old issues.

Read npm faq. It answers the question you have.

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