Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Install from latest master is broken. #961

Closed
inadarei opened this issue May 22, 2011 · 0 comments
Closed

Install from latest master is broken. #961

inadarei opened this issue May 22, 2011 · 0 comments

Comments

@inadarei
Copy link

This was tested on Debian Lenny.

> sudo git clone http://github.com/isaacs/npm.git
> cd npm
> sudo make install

Results in following error:

node cli.js install -g -f
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm.js
npm ERR! TypeError: Cannot read property 'children' of undefined
npm ERR!     at /usr/local/src/npm/lib/install.js:265:21
npm ERR!     at Array.reduce (native)
npm ERR!     at treeify (/usr/local/src/npm/lib/install.js:258:33)
npm ERR!     at cb (/usr/local/src/npm/lib/install.js:156:16)
npm ERR!     at cb (/usr/local/src/npm/lib/utils/async-map.js:51:11)
npm ERR!     at /usr/local/src/npm/lib/install.js:436:9
npm ERR!     at cb (/usr/local/src/npm/lib/utils/chain.js:35:14)
npm ERR!     at cb (/usr/local/src/npm/lib/install.js:518:21)
npm ERR!     at /usr/local/src/npm/lib/install.js:555:52
npm ERR!     at cb (/usr/local/src/npm/lib/utils/chain.js:35:14)
npm ERR! Report this *entire* log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>
npm ERR! 
npm ERR! System Linux 2.6.26-2-686
npm ERR! command "node" "/usr/local/src/npm/cli.js" "install" "-g" "-f"
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /usr/local/src/npm/npm-debug.log
npm not ok
make: *** [install] Error 1

However if I do this:

$ sudo git checkout origin/1.0
M   node_modules/semver
$ sudo make install

installation completes successfully.

I noticed that node_modules/semver sub-module was upgraded yesterday, so wondering if that might have broken something?

@isaacs isaacs closed this as completed in 6892acd May 22, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants