Building Nodejs on Raspbian


29 posts   Page 1 of 2   1, 2
by josch » Wed Jun 27, 2012 10:39 am
Hi.

For several days, I struggled to build Nodejs on Raspbian, but I couldn't get to work properly.
All the search results, I could find, deal with building nodejs on Debian Arm, so they are no big help.
The build process seems to stop with linking the V8-library with a "problem", that's remains unnamed. The log file is no help, either.

Did anyone succeded with a build on Raspbian and give me any hint, how to get it built?

Bye Jochen
Posts: 8
Joined: Wed Jun 27, 2012 10:02 am
by mpthompson » Thu Jun 28, 2012 5:10 pm
josch wrote:Hi.

For several days, I struggled to build Nodejs on Raspbian, but I couldn't get to work properly.
All the search results, I could find, deal with building nodejs on Debian Arm, so they are no big help.
The build process seems to stop with linking the V8-library with a "problem", that's remains unnamed. The log file is no help, either.

Did anyone succeded with a build on Raspbian and give me any hint, how to get it built?

Bye Jochen


I've been wanting to tackle the V8 library which doesn't appear to be work when running under Raspbian on the Raspberry Pi. I haven't yet looked to closely into it yet, but I believe the issue is that the V8 code thinks that it can use armv7 instructions based on an invalid compile time assumption that causes the code to crash when run on the armv6 based Raspberry Pi. Because our build servers are actually armv7 based devices, the build time checking doesn't actually catch the error.

I can't promise when I can get to it, but I do intend to see what I can do about getting a correctly functioning V8 package. Hopefully Nodejs will then function as intended. I'll update this thread with more information once I look into it.

Mike
User avatar
Forum Moderator
Forum Moderator
Posts: 620
Joined: Fri Feb 03, 2012 7:18 pm
Location: San Carlos, CA
by mpthompson » Fri Jun 29, 2012 4:13 am
Still working on this. On IRC I was given a link to patches made by Andy Nichols that should allow V8 to properly support armv6 vfp2 instructions:

https://codereview.qt-project.org/#change,27256

I'm contacting Andy to see if he knows if these are the only patches required to get V8 running on the Raspberry Pi. If he replies in the affirmative, I'll apply the patches to the libv8 package and hopefully we shall soon have a working V8 JavaScript engine for Raspbian that should allow other packages such as Node.js to then function.
User avatar
Forum Moderator
Forum Moderator
Posts: 620
Joined: Fri Feb 03, 2012 7:18 pm
Location: San Carlos, CA
by josch » Fri Jun 29, 2012 2:00 pm
Thanks for your efforts.
Posts: 8
Joined: Wed Jun 27, 2012 10:02 am
by mpthompson » Sun Jul 01, 2012 2:20 am
OK, I did the best I could to apply the patches that might result in a functioning V8 interpreter for Raspbian. I basically applied the patches blind, not really knowing exactly what they do. However, the result did compile and seem to pass the build tests on the build server. However, as our build servers are armv7 based, that doesn't necessarily indicate the working code for the Raspberry Pi. Likewise, I got a clean build of the Nodejs source package. However, I don't know how to test the resulting packages.

The packages are now pushed to the Raspbian repository. Could someone familiar with nodejs install and test the nodejs package (the libv8 package will automatically be included as part of the dependency) and give it thumbs up or thumbs down.

If the package works, it would be best if someone with a vested interest in seeing the Debian libv8 package work on the Raspberry Pi could coordinate with the upstream maintainers to get the patches into the V8 interpreter source, or at least in the the Debian package.

If the packages don't work, I'm not certain how much more I can do on my side. Someone familiar with the V8 interpreter and arm assembly code would have go through the patches and figure out what more needs to be done to get a functioning libv8 package and nodejs package.

Anyway, I'm crossing my fingers that the patches work.
User avatar
Forum Moderator
Forum Moderator
Posts: 620
Joined: Fri Feb 03, 2012 7:18 pm
Location: San Carlos, CA
by kmpm » Mon Jul 02, 2012 5:30 am
I just saw this and having struggled with trying to compile it myself I became very happy.
The simple "Hello World" web server example from the http://nodejs.org frontpage works as intended at least.

I will do some more tests during the day...

Great work.
Posts: 13
Joined: Sat Jun 09, 2012 4:14 pm
by mpthompson » Mon Jul 02, 2012 5:24 pm
Thank you for confirming that at least "Hello World" runs. I look forward to hearing about a more complex test of Nodejs/V8 running under Raspbian. Still keeping my fingers crossed.
User avatar
Forum Moderator
Forum Moderator
Posts: 620
Joined: Fri Feb 03, 2012 7:18 pm
Location: San Carlos, CA
by kmpm » Tue Jul 03, 2012 6:45 am
Ok...
I have tried several modules, libraries, projects without anything unexpected happening.
I have built and used modules that require compilation and linking of native ( c/c++ ) code and that works as well. This doesn't mean that there won't be any issues further on but as far as I can tell it works.
I would consider this a working package. Thanks for the effort.

I can see Andy's work and will keep track of it and their effort to get it into upstream but have you done anything to get these patches into debian in the mean time?
I don't know debian procedures but if you need/want me to do anything please give a hint on where to start. Getting your package changes, somehow, and then some sort of bug posting I guess.


P.S... if you bring in nodejs, please, please, please add http://packages.debian.org/sid/npm as well. Unless you only work with what you get from installing node you would need npm to download dependencies, publish modules etc. I'ts like apt for node almost.
I installed it by downloading and running the installation script from http://npmjs.org/ without any modification at all, it's javascript so if node works npm should work.


Thanks again
//Peter
Posts: 13
Joined: Sat Jun 09, 2012 4:14 pm
by mpthompson » Tue Jul 03, 2012 7:51 am
kmpm wrote:I don't know debian procedures but if you need/want me to do anything please give a hint on where to start. Getting your package changes, somehow, and then some sort of bug posting I guess.


Honestly, I'm not familiar myself with Debian proceedures around this. If plugwash doesn't see this and chime in, perhaps you can send him a private message and ask what you might do to see that Andy's changes get in upstream. Ideally the changes would be included within the V8 development team which is further upstream from Debian. Perhaps you can post a question in their forum.

kmpm wrote:P.S... if you bring in nodejs, please, please, please add http://packages.debian.org/sid/npm as well. Unless you only work with what you get from installing node you would need npm to download dependencies, publish modules etc. I'ts like apt for node almost.


Done. I brought in npm from Sid and should be in the next public update of the Raspbian repository in a few hours. Nodejs should already be in our repository. Let me know if there are problems around it.
User avatar
Forum Moderator
Forum Moderator
Posts: 620
Joined: Fri Feb 03, 2012 7:18 pm
Location: San Carlos, CA
by josch » Tue Jul 03, 2012 2:02 pm
I tried to run Etherpad Lite (https://github.com/Pita/etherpad-lite/), which uses nodejs to work.
I brought in NPM like kmpm. Starting Etherpad Lite, it starts fetching its dependencies via NPM.
But the building process stopped at one dependency (IIRC it was 'ws'), so there seems to be some problem.
As I don't know how to program with Nodejs, I have no hints where problem lies.


Bye Jochen
Posts: 8
Joined: Wed Jun 27, 2012 10:02 am
by kmpm » Tue Jul 03, 2012 8:58 pm
@josch, could you please tell what error you got. I have installed ws succesfully and ran most of its tests with correct result.

You know that for some modules you need nodejs-dev and build-essential installed as well, don't you? If there are any other dependencies you might have to install tem using apt-get also before installation/compilation will work.

For installing modules with some sort of native code that needs to be compiled nodejs-dev and build-essential is a must.

//Peter
Posts: 13
Joined: Sat Jun 09, 2012 4:14 pm
by josch » Tue Jul 03, 2012 9:20 pm
@kmpm
Code: Select all
> ws@0.4.20 install /root/compile/etherpad-lite/src/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> node install.js


module.js:337
    throw new Error("Cannot find module '" + request + "'");
          ^
Error: Cannot find module '/root/compile/etherpad-lite/src/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/install.js'
    at Function._resolveFilename (module.js:337:11)
    at Function._load (module.js:279:25)
    at Array.0 (module.js:484:10)
    at EventEmitter._tickCallback (node.js:190:39)
npm ERR! ws@0.4.20 install: `node install.js`
npm ERR! `sh "-c" "node install.js"` failed with 1
npm ERR!
npm ERR! Failed at the ws@0.4.20 install script.
npm ERR! This is most likely a problem with the ws package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls ws
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.1.9+
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /root/compile/etherpad-lite/src
npm ERR! node -v v0.6.19
npm ERR! npm -v 1.1.35
npm ERR! code ELIFECYCLE
npm ERR! message ws@0.4.20 install: `node install.js`
npm ERR! message `sh "-c" "node install.js"` failed with 1
npm ERR! Error: ENOENT, lstat '/root/compile/etherpad-lite/src/node_modules/socket.io/node_modules/socket.io-client/node_modules/active-x-obfuscator/node_modules/zeparser/benchmark.html'
npm ERR!  { [Error: ENOENT, lstat '/root/compile/etherpad-lite/src/node_modules/socket.io/node_modules/socket.io-client/node_modules/active-x-obfuscator/node_modules/zeparser/benchmark.html']
npm ERR!   errno: 34,
npm ERR!   code: 'ENOENT',
npm ERR!   path: '/root/compile/etherpad-lite/src/node_modules/socket.io/node_modules/socket.io-client/node_modules/active-x-obfuscator/node_modules/zeparser/benchmark.html',
npm ERR!   fstream_type: 'File',
npm ERR!   fstream_path: '/root/compile/etherpad-lite/src/node_modules/socket.io/node_modules/socket.io-client/node_modules/active-x-obfuscator/node_modules/zeparser/benchmark.html',
npm ERR!   fstream_class: 'FileWriter',
npm ERR!   fstream_stack: [ 'Object.oncomplete (/usr/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26)' ] }
npm ERR! You may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.1.9+
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /root/compile/etherpad-lite/src
npm ERR! node -v v0.6.19
npm ERR! npm -v 1.1.35
npm ERR! path /root/compile/etherpad-lite/src/node_modules/socket.io/node_modules/socket.io-client/node_modules/active-x-obfuscator/node_modules/zeparser/benchmark.html
npm ERR! fstream_path /root/compile/etherpad-lite/src/node_modules/socket.io/node_modules/socket.io-client/node_modules/active-x-obfuscator/node_modules/zeparser/benchmark.html
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! message ENOENT, lstat '/root/compile/etherpad-lite/src/node_modules/socket.io/node_modules/socket.io-client/node_modules/active-x-obfuscator/node_modules/zeparser/benchmark.html'
npm ERR! errno 34
npm ERR! fstream_stack Object.oncomplete (/usr/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26)
npm ERR! 34 errno
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /root/compile/etherpad-lite/src/npm-debug.log
npm ERR! not ok code undefined
npm ERR! not ok code 1


Installing nodejs-dev didn't help.

@mpthompson I couldn't install npm because the dependencies couldn't be resolved.
Posts: 8
Joined: Wed Jun 27, 2012 10:02 am
by mpthompson » Tue Jul 03, 2012 11:17 pm
josch wrote:@mpthompson I couldn't install npm because the dependencies couldn't be resolved.


My Raspberry Pi is occupied working on a large build right now, but I should be able to get to this within the next 24 hours. I basically brought over the npm module from Sid without looking at what other dependencies might have been needed as well. That was a mistake on my part.
User avatar
Forum Moderator
Forum Moderator
Posts: 620
Joined: Fri Feb 03, 2012 7:18 pm
Location: San Carlos, CA
by kmpm » Wed Jul 04, 2012 1:25 am
@josch I successfully ran etherpad-lite just now without any special tricks. I'm thinking that I might have installed something that ws depends on that you are missing.

Could you try to do a "npm install ws" and check if you get a more detailed error.
Posts: 13
Joined: Sat Jun 09, 2012 4:14 pm
by josch » Wed Jul 04, 2012 6:09 pm
@kmpm
I did 'npm install -g ws --verbose' (-g is recommended). The result is:
Code: Select all
npm info it worked if it ends with ok
npm verb cli [ 'node', '/usr/bin/npm', 'install', '-g', 'ws', '--verbose' ]
npm info using npm@1.1.35
npm info using node@v0.6.19
npm verb config file /root/.npmrc
npm verb config file /usr/etc/npmrc
npm verb config file /usr/lib/node_modules/npm/npmrc
npm verb read json /usr/lib/package.json
npm verb read json /usr/lib/package.json
npm verb cache add [ 'ws', null ]
npm verb parsed url { pathname: 'ws', path: 'ws', href: 'ws' }
npm verb lock ws /root/.npm/1457b75dc8c5500c0f1d4503cf801b60deb045a4-ws.lock
npm verb addNamed [ 'ws', '' ]
npm verb addNamed [ null, '' ]
npm verb lock ws@ /root/.npm/e88fe629736a40327dea302c0f5d51d0444efb92-ws-.lock
npm verb url raw ws
npm verb url resolving [ 'https://registry.npmjs.org/', './ws' ]
npm verb url resolved https://registry.npmjs.org/ws
npm info retry registry request attempt 1 at 20:00:03
npm verb etag "CHAXLQY93RDLFAVUYVIWHAGQQ"
npm http GET https://registry.npmjs.org/ws
npm http 304 https://registry.npmjs.org/ws
npm verb etag ws from cache
npm verb addNamed [ 'ws', '0.4.20' ]
npm verb addNamed [ '0.4.20', '0.4.20' ]
npm verb lock ws@0.4.20 /root/.npm/c8009c2df7c40feb8e92af166ef128648641db3f-ws-0-4-20.lock
npm verb read json /root/.npm/ws/0.4.20/package/package.json
npm info install ws@0.4.20 into /usr/lib
npm info installOne ws@0.4.20
npm verb from cache /root/.npm/ws/0.4.20/package/package.json
npm info /usr/lib/node_modules/ws unbuild
npm verb read json /usr/lib/node_modules/ws/package.json
npm info preuninstall ws@0.4.20
npm info uninstall ws@0.4.20
npm verb true,/usr/lib/node_modules,/usr/lib/node_modules unbuild ws@0.4.20
npm verb /usr/bin,[object Object] binRoot
npm info postuninstall ws@0.4.20
npm verb tar unpack /root/.npm/ws/0.4.20/package.tgz
npm verb lock /usr/lib/node_modules/ws /root/.npm/3db7ac91ee8cff00430c0f3b569a68d924503409--usr-lib-node-modules-ws.lock
npm verb from cache /usr/lib/node_modules/ws/package.json
npm info preinstall ws@0.4.20
npm verb from cache /usr/lib/node_modules/ws/package.json
npm verb readDependencies using package.json deps
npm verb from cache /usr/lib/node_modules/ws/package.json
npm verb readDependencies using package.json deps
npm verb cache add [ 'commander@~0.6.1', null ]
npm verb parsed url { pathname: 'commander@~0.6.1',
npm verb parsed url   path: 'commander@~0.6.1',
npm verb parsed url   href: 'commander@~0.6.1' }
npm verb parsed url { pathname: '~0.6.1', path: '~0.6.1', href: '~0.6.1' }
npm verb addNamed [ 'commander', '~0.6.1' ]
npm verb addNamed [ null, '>=0.6.1- <0.7.0-' ]
npm verb lock commander@~0.6.1 /root/.npm/5c53196dba33b5e06a20da032b11e3dc8e38b558-commander-0-6-1.lock
npm verb cache add [ 'tinycolor@0.x', null ]
npm verb parsed url { pathname: 'tinycolor@0.x',
npm verb parsed url   path: 'tinycolor@0.x',
npm verb parsed url   href: 'tinycolor@0.x' }
npm verb parsed url { pathname: '0.x', path: '0.x', href: '0.x' }
npm verb addNamed [ 'tinycolor', '0.x' ]
npm verb addNamed [ null, '>=0.0.0- <1.0.0-' ]
npm verb lock tinycolor@0.x /root/.npm/8f23180dcf23bb7cb23ba0f8090c14059dc41828-tinycolor-0-x.lock
npm verb cache add [ 'options@latest', null ]
npm verb parsed url { pathname: 'options@latest',
npm verb parsed url   path: 'options@latest',
npm verb parsed url   href: 'options@latest' }
npm verb parsed url { pathname: 'latest', path: 'latest', href: 'latest' }
npm verb addNamed [ 'options', 'latest' ]
npm verb addNamed [ null, null ]
npm verb lock options@latest /root/.npm/479efb467caa3a4d0ad4b7f679da971a867be7b4-options-latest.lock
npm info addNameTag [ 'options', 'latest' ]
npm verb url raw commander
npm verb url resolving [ 'https://registry.npmjs.org/', './commander' ]
npm verb url resolved https://registry.npmjs.org/commander
npm info retry registry request attempt 1 at 20:00:08
npm verb etag "65DPNM9LMWFDRI7VT6UKGCHKI"
npm http GET https://registry.npmjs.org/commander
npm verb url raw tinycolor
npm verb url resolving [ 'https://registry.npmjs.org/', './tinycolor' ]
npm verb url resolved https://registry.npmjs.org/tinycolor
npm info retry registry request attempt 1 at 20:00:08
npm verb etag "8ZWKU4LY7IZ7MX4I3X3HL3N3I"
npm http GET https://registry.npmjs.org/tinycolor
npm verb url raw options
npm verb url resolving [ 'https://registry.npmjs.org/', './options' ]
npm verb url resolved https://registry.npmjs.org/options
npm info retry registry request attempt 1 at 20:00:08
npm verb etag "12FQAEKC0ZURS2XWFQS657V9A"
npm http GET https://registry.npmjs.org/options
npm http 304 https://registry.npmjs.org/commander
npm verb etag commander from cache
npm verb addNamed [ 'commander', '0.6.1' ]
npm verb addNamed [ '0.6.1', '0.6.1' ]
npm verb lock commander@0.6.1 /root/.npm/fa16a2cefe1a1555b6a4ca8335114a4d48b69f67-commander-0-6-1.lock
npm verb read json /root/.npm/commander/0.6.1/package/package.json
npm http 304 https://registry.npmjs.org/tinycolor
npm verb etag tinycolor from cache
npm verb addNamed [ 'tinycolor', '0.0.1' ]
npm verb addNamed [ '0.0.1', '0.0.1' ]
npm verb lock tinycolor@0.0.1 /root/.npm/8ace0652b52015f95615bc8620c3bddcfe10d933-tinycolor-0-0-1.lock
npm verb read json /root/.npm/tinycolor/0.0.1/package/package.json
npm http 304 https://registry.npmjs.org/options
npm verb etag options from cache
npm verb addNamed [ 'options', '0.0.3' ]
npm verb addNamed [ '0.0.3', '0.0.3' ]
npm verb lock options@0.0.3 /root/.npm/82d096230b658781488923750b27aaa4d941a518-options-0-0-3.lock
npm verb read json /root/.npm/options/0.0.3/package/package.json
npm info install commander@0.6.1 into /usr/lib/node_modules/ws
npm info install tinycolor@0.0.1 into /usr/lib/node_modules/ws
npm info install options@0.0.3 into /usr/lib/node_modules/ws
npm info installOne commander@0.6.1
npm info installOne tinycolor@0.0.1
npm info installOne options@0.0.3
npm verb from cache /root/.npm/commander/0.6.1/package/package.json
npm verb from cache /root/.npm/tinycolor/0.0.1/package/package.json
npm verb from cache /root/.npm/options/0.0.3/package/package.json
npm info /usr/lib/node_modules/ws/node_modules/commander unbuild
npm verb read json /usr/lib/node_modules/ws/node_modules/commander/package.json
npm info /usr/lib/node_modules/ws/node_modules/tinycolor unbuild
npm verb read json /usr/lib/node_modules/ws/node_modules/tinycolor/package.json
npm info /usr/lib/node_modules/ws/node_modules/options unbuild
npm verb read json /usr/lib/node_modules/ws/node_modules/options/package.json
npm verb tar unpack /root/.npm/commander/0.6.1/package.tgz
npm verb tar unpack /root/.npm/tinycolor/0.0.1/package.tgz
npm verb tar unpack /root/.npm/options/0.0.3/package.tgz
npm verb lock /usr/lib/node_modules/ws/node_modules/commander /root/.npm/2ae024aee2168a4db636e71c063cf11129f3fcc1--usr-lib-node-modules-ws-node-modules-commander.lock
npm verb lock /usr/lib/node_modules/ws/node_modules/tinycolor /root/.npm/fb5e2eccf9bbc2266988b4cd17dbbbe1f94d67f9--usr-lib-node-modules-ws-node-modules-tinycolor.lock
npm verb lock /usr/lib/node_modules/ws/node_modules/options /root/.npm/948f087b5310b06fdf3078e81fd559143863d232--usr-lib-node-modules-ws-node-modules-options.lock
npm verb read json /usr/lib/node_modules/ws/node_modules/tinycolor/package.json
npm info preinstall tinycolor@0.0.1
npm verb from cache /usr/lib/node_modules/ws/node_modules/tinycolor/package.json
npm verb readDependencies using package.json deps
npm verb from cache /usr/lib/node_modules/ws/node_modules/tinycolor/package.json
npm verb readDependencies using package.json deps
npm verb about to build /usr/lib/node_modules/ws/node_modules/tinycolor
npm info build /usr/lib/node_modules/ws/node_modules/tinycolor
npm verb from cache /usr/lib/node_modules/ws/node_modules/tinycolor/package.json
npm verb linkStuff [ true,
npm verb linkStuff   '/usr/lib/node_modules',
npm verb linkStuff   false,
npm verb linkStuff   '/usr/lib/node_modules/ws/node_modules' ]
npm info linkStuff tinycolor@0.0.1
npm verb linkBins tinycolor@0.0.1
npm verb linkMans tinycolor@0.0.1
npm verb rebuildBundles tinycolor@0.0.1
npm info install tinycolor@0.0.1
npm verb read json /usr/lib/node_modules/ws/node_modules/options/package.json
npm info postinstall tinycolor@0.0.1
npm info preinstall options@0.0.3
npm verb from cache /usr/lib/node_modules/ws/node_modules/options/package.json
npm verb readDependencies using package.json deps
npm verb from cache /usr/lib/node_modules/ws/node_modules/options/package.json
npm verb readDependencies using package.json deps
npm verb about to build /usr/lib/node_modules/ws/node_modules/options
npm info build /usr/lib/node_modules/ws/node_modules/options
npm verb from cache /usr/lib/node_modules/ws/node_modules/options/package.json
npm verb read json /usr/lib/node_modules/ws/node_modules/commander/package.json
npm verb linkStuff [ true,
npm verb linkStuff   '/usr/lib/node_modules',
npm verb linkStuff   false,
npm verb linkStuff   '/usr/lib/node_modules/ws/node_modules' ]
npm info linkStuff options@0.0.3
npm verb linkBins options@0.0.3
npm verb linkMans options@0.0.3
npm verb rebuildBundles options@0.0.3
npm info install options@0.0.3
npm info postinstall options@0.0.3
npm info preinstall commander@0.6.1
npm verb from cache /usr/lib/node_modules/ws/node_modules/commander/package.json
npm verb readDependencies using package.json deps
npm verb from cache /usr/lib/node_modules/ws/node_modules/commander/package.json
npm verb readDependencies using package.json deps
npm verb about to build /usr/lib/node_modules/ws/node_modules/commander
npm info build /usr/lib/node_modules/ws/node_modules/commander
npm verb from cache /usr/lib/node_modules/ws/node_modules/commander/package.json
npm verb linkStuff [ true,
npm verb linkStuff   '/usr/lib/node_modules',
npm verb linkStuff   false,
npm verb linkStuff   '/usr/lib/node_modules/ws/node_modules' ]
npm info linkStuff commander@0.6.1
npm verb linkBins commander@0.6.1
npm verb linkMans commander@0.6.1
npm verb rebuildBundles commander@0.6.1
npm info install commander@0.6.1
npm info postinstall commander@0.6.1
npm verb about to build /usr/lib/node_modules/ws
npm info build /usr/lib/node_modules/ws
npm verb from cache /usr/lib/node_modules/ws/package.json
npm verb linkStuff [ true, '/usr/lib/node_modules', true, '/usr/lib/node_modules' ]
npm info linkStuff ws@0.4.20
npm verb linkBins ws@0.4.20
npm verb link bins [ { wscat: './bin/wscat' }, '/usr/bin', true ]
npm verb linkMans ws@0.4.20
npm verb rebuildBundles ws@0.4.20
npm verb rebuildBundles [ 'options', 'commander', 'tinycolor' ]
/usr/bin/wscat -> /usr/lib/node_modules/ws/bin/wscat
npm info install ws@0.4.20
npm verb unsafe-perm in lifecycle false

> ws@0.4.20 install /usr/lib/node_modules/ws
> node install.js

npm verb set uid from=0 to=nobody
npm verb set uid from=0 to=65534
[ws v0.4.20] Attempting to compile blazing fast native extensions.
[ws v0.4.20] Native code compile failed (but the module will still work):
[ws v0.4.20] The native extensions are faster, but not required.
[ws v0.4.20] On Windows, native extensions require Visual Studio and Python.
[ws v0.4.20] On Unix, native extensions require Python, make and a C++ compiler.
[ws v0.4.20] Start npm with --ws:verbose to show compilation output (if any).
npm info postinstall ws@0.4.20
tinycolor@0.0.1 /usr/lib/node_modules/ws/node_modules/tinycolor

options@0.0.3 /usr/lib/node_modules/ws/node_modules/options

commander@0.6.1 /usr/lib/node_modules/ws/node_modules/commander

ws@0.4.20 /usr/lib/node_modules/ws
npm verb exit [ 0, true ]
npm info ok


I'm at a loss, what the problem is. Perhaps you can dump your package list, so I can compare them.
Posts: 8
Joined: Wed Jun 27, 2012 10:02 am
by kmpm » Thu Jul 05, 2012 2:51 pm
Ok better... It's the compiling of native libraries that fail, probably a dependency issue.
Could you please do ..
Code: Select all
npm install -g ws --verbose --ws:verbose

And get back with the results.
Posts: 13
Joined: Sat Jun 09, 2012 4:14 pm
by josch » Thu Jul 05, 2012 6:58 pm
Well, with -g it seems to work. wscat exists and runs.

Code: Select all
root@pisces:~/compile/etherpad-lite# npm install -g ws --verbose --ws:verbose
npm info it worked if it ends with ok
npm verb cli [ 'node',
npm verb cli   '/usr/bin/npm',
npm verb cli   'install',
npm verb cli   '-g',
npm verb cli   'ws',
npm verb cli   '--verbose',
npm verb cli   '--ws:verbose' ]
npm info using npm@1.1.35
npm info using node@v0.6.19
npm verb config file /root/.npmrc
npm verb config file /usr/etc/npmrc
npm verb config file /usr/lib/node_modules/npm/npmrc
npm verb read json /usr/lib/package.json
npm verb read json /usr/lib/package.json
npm verb cache add [ 'ws', null ]
npm verb parsed url { pathname: 'ws', path: 'ws', href: 'ws' }
npm verb lock ws /root/.npm/1457b75dc8c5500c0f1d4503cf801b60deb045a4-ws.lock
npm verb addNamed [ 'ws', '' ]
npm verb addNamed [ null, '' ]
npm verb lock ws@ /root/.npm/e88fe629736a40327dea302c0f5d51d0444efb92-ws-.lock
npm verb url raw ws
npm verb url resolving [ 'https://registry.npmjs.org/', './ws' ]
npm verb url resolved https://registry.npmjs.org/ws
npm info retry registry request attempt 1 at 20:47:15
npm verb etag "CHAXLQY93RDLFAVUYVIWHAGQQ"
npm http GET https://registry.npmjs.org/ws
npm http 304 https://registry.npmjs.org/ws
npm verb etag ws from cache
npm verb addNamed [ 'ws', '0.4.20' ]
npm verb addNamed [ '0.4.20', '0.4.20' ]
npm verb lock ws@0.4.20 /root/.npm/c8009c2df7c40feb8e92af166ef128648641db3f-ws-0-4-20.lock
npm verb read json /root/.npm/ws/0.4.20/package/package.json
npm info install ws@0.4.20 into /usr/lib
npm info installOne ws@0.4.20
npm verb from cache /root/.npm/ws/0.4.20/package/package.json
npm info /usr/lib/node_modules/ws unbuild
npm verb read json /usr/lib/node_modules/ws/package.json
npm info preuninstall ws@0.4.20
npm info uninstall ws@0.4.20
npm verb true,/usr/lib/node_modules,/usr/lib/node_modules unbuild ws@0.4.20
npm verb /usr/bin,[object Object] binRoot
npm info postuninstall ws@0.4.20
npm verb tar unpack /root/.npm/ws/0.4.20/package.tgz
npm verb lock /usr/lib/node_modules/ws /root/.npm/3db7ac91ee8cff00430c0f3b569a68d924503409--usr-lib-node-modules-ws.lock
npm verb from cache /usr/lib/node_modules/ws/package.json
npm info preinstall ws@0.4.20
npm verb from cache /usr/lib/node_modules/ws/package.json
npm verb readDependencies using package.json deps
npm verb from cache /usr/lib/node_modules/ws/package.json
npm verb readDependencies using package.json deps
npm verb cache add [ 'commander@~0.6.1', null ]
npm verb parsed url { pathname: 'commander@~0.6.1',
npm verb parsed url   path: 'commander@~0.6.1',
npm verb parsed url   href: 'commander@~0.6.1' }
npm verb parsed url { pathname: '~0.6.1', path: '~0.6.1', href: '~0.6.1' }
npm verb addNamed [ 'commander', '~0.6.1' ]
npm verb addNamed [ null, '>=0.6.1- <0.7.0-' ]
npm verb lock commander@~0.6.1 /root/.npm/5c53196dba33b5e06a20da032b11e3dc8e38b558-commander-0-6-1.lock
npm verb cache add [ 'tinycolor@0.x', null ]
npm verb parsed url { pathname: 'tinycolor@0.x',
npm verb parsed url   path: 'tinycolor@0.x',
npm verb parsed url   href: 'tinycolor@0.x' }
npm verb parsed url { pathname: '0.x', path: '0.x', href: '0.x' }
npm verb addNamed [ 'tinycolor', '0.x' ]
npm verb addNamed [ null, '>=0.0.0- <1.0.0-' ]
npm verb lock tinycolor@0.x /root/.npm/8f23180dcf23bb7cb23ba0f8090c14059dc41828-tinycolor-0-x.lock
npm verb cache add [ 'options@latest', null ]
npm verb parsed url { pathname: 'options@latest',
npm verb parsed url   path: 'options@latest',
npm verb parsed url   href: 'options@latest' }
npm verb parsed url { pathname: 'latest', path: 'latest', href: 'latest' }
npm verb addNamed [ 'options', 'latest' ]
npm verb addNamed [ null, null ]
npm verb lock options@latest /root/.npm/479efb467caa3a4d0ad4b7f679da971a867be7b4-options-latest.lock
npm info addNameTag [ 'options', 'latest' ]
npm verb url raw tinycolor
npm verb url resolving [ 'https://registry.npmjs.org/', './tinycolor' ]
npm verb url resolved https://registry.npmjs.org/tinycolor
npm info retry registry request attempt 1 at 20:47:22
npm verb etag "8ZWKU4LY7IZ7MX4I3X3HL3N3I"
npm http GET https://registry.npmjs.org/tinycolor
npm verb url raw options
npm verb url resolving [ 'https://registry.npmjs.org/', './options' ]
npm verb url resolved https://registry.npmjs.org/options
npm info retry registry request attempt 1 at 20:47:23
npm verb etag "12FQAEKC0ZURS2XWFQS657V9A"
npm http GET https://registry.npmjs.org/options
npm verb url raw commander
npm verb url resolving [ 'https://registry.npmjs.org/', './commander' ]
npm verb url resolved https://registry.npmjs.org/commander
npm info retry registry request attempt 1 at 20:47:23
npm verb etag "68E2R6PRBU1JXQDGMML1UOOCZ"
npm http GET https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/commander
npm verb etag commander from cache
npm verb addNamed [ 'commander', '0.6.1' ]
npm verb addNamed [ '0.6.1', '0.6.1' ]
npm verb lock commander@0.6.1 /root/.npm/fa16a2cefe1a1555b6a4ca8335114a4d48b69f67-commander-0-6-1.lock
npm verb read json /root/.npm/commander/0.6.1/package/package.json
npm http 304 https://registry.npmjs.org/tinycolor
npm verb etag tinycolor from cache
npm verb addNamed [ 'tinycolor', '0.0.1' ]
npm verb addNamed [ '0.0.1', '0.0.1' ]
npm verb lock tinycolor@0.0.1 /root/.npm/8ace0652b52015f95615bc8620c3bddcfe10d933-tinycolor-0-0-1.lock
npm http 304 https://registry.npmjs.org/options
npm verb etag options from cache
npm verb read json /root/.npm/tinycolor/0.0.1/package/package.json
npm verb addNamed [ 'options', '0.0.3' ]
npm verb addNamed [ '0.0.3', '0.0.3' ]
npm verb lock options@0.0.3 /root/.npm/82d096230b658781488923750b27aaa4d941a518-options-0-0-3.lock
npm verb read json /root/.npm/options/0.0.3/package/package.json
npm info install commander@0.6.1 into /usr/lib/node_modules/ws
npm info install tinycolor@0.0.1 into /usr/lib/node_modules/ws
npm info install options@0.0.3 into /usr/lib/node_modules/ws
npm info installOne commander@0.6.1
npm info installOne tinycolor@0.0.1
npm info installOne options@0.0.3
npm verb from cache /root/.npm/commander/0.6.1/package/package.json
npm verb from cache /root/.npm/tinycolor/0.0.1/package/package.json
npm verb from cache /root/.npm/options/0.0.3/package/package.json
npm info /usr/lib/node_modules/ws/node_modules/commander unbuild
npm verb read json /usr/lib/node_modules/ws/node_modules/commander/package.json
npm info /usr/lib/node_modules/ws/node_modules/tinycolor unbuild
npm verb read json /usr/lib/node_modules/ws/node_modules/tinycolor/package.json
npm info /usr/lib/node_modules/ws/node_modules/options unbuild
npm verb read json /usr/lib/node_modules/ws/node_modules/options/package.json
npm verb tar unpack /root/.npm/commander/0.6.1/package.tgz
npm verb tar unpack /root/.npm/tinycolor/0.0.1/package.tgz
npm verb tar unpack /root/.npm/options/0.0.3/package.tgz
npm verb lock /usr/lib/node_modules/ws/node_modules/commander /root/.npm/2ae024aee2168a4db636e71c063cf11129f3fcc1--usr-lib-node-modules-ws-node-modules-commander.lock
npm verb lock /usr/lib/node_modules/ws/node_modules/tinycolor /root/.npm/fb5e2eccf9bbc2266988b4cd17dbbbe1f94d67f9--usr-lib-node-modules-ws-node-modules-tinycolor.lock
npm verb lock /usr/lib/node_modules/ws/node_modules/options /root/.npm/948f087b5310b06fdf3078e81fd559143863d232--usr-lib-node-modules-ws-node-modules-options.lock
npm verb read json /usr/lib/node_modules/ws/node_modules/tinycolor/package.json
npm info preinstall tinycolor@0.0.1
npm verb from cache /usr/lib/node_modules/ws/node_modules/tinycolor/package.json
npm verb readDependencies using package.json deps
npm verb from cache /usr/lib/node_modules/ws/node_modules/tinycolor/package.json
npm verb readDependencies using package.json deps
npm verb about to build /usr/lib/node_modules/ws/node_modules/tinycolor
npm info build /usr/lib/node_modules/ws/node_modules/tinycolor
npm verb from cache /usr/lib/node_modules/ws/node_modules/tinycolor/package.json
npm verb linkStuff [ true,
npm verb linkStuff   '/usr/lib/node_modules',
npm verb linkStuff   false,
npm verb linkStuff   '/usr/lib/node_modules/ws/node_modules' ]
npm info linkStuff tinycolor@0.0.1
npm verb linkBins tinycolor@0.0.1
npm verb linkMans tinycolor@0.0.1
npm verb rebuildBundles tinycolor@0.0.1
npm info install tinycolor@0.0.1
npm verb read json /usr/lib/node_modules/ws/node_modules/options/package.json
npm info postinstall tinycolor@0.0.1
npm info preinstall options@0.0.3
npm verb from cache /usr/lib/node_modules/ws/node_modules/options/package.json
npm verb readDependencies using package.json deps
npm verb from cache /usr/lib/node_modules/ws/node_modules/options/package.json
npm verb readDependencies using package.json deps
npm verb about to build /usr/lib/node_modules/ws/node_modules/options
npm info build /usr/lib/node_modules/ws/node_modules/options
npm verb from cache /usr/lib/node_modules/ws/node_modules/options/package.json
npm verb read json /usr/lib/node_modules/ws/node_modules/commander/package.json
npm verb linkStuff [ true,
npm verb linkStuff   '/usr/lib/node_modules',
npm verb linkStuff   false,
npm verb linkStuff   '/usr/lib/node_modules/ws/node_modules' ]
npm info linkStuff options@0.0.3
npm verb linkBins options@0.0.3
npm verb linkMans options@0.0.3
npm verb rebuildBundles options@0.0.3
npm info install options@0.0.3
npm info postinstall options@0.0.3
npm info preinstall commander@0.6.1
npm verb from cache /usr/lib/node_modules/ws/node_modules/commander/package.json
npm verb readDependencies using package.json deps
npm verb from cache /usr/lib/node_modules/ws/node_modules/commander/package.json
npm verb readDependencies using package.json deps
npm verb about to build /usr/lib/node_modules/ws/node_modules/commander
npm info build /usr/lib/node_modules/ws/node_modules/commander
npm verb from cache /usr/lib/node_modules/ws/node_modules/commander/package.json
npm verb linkStuff [ true,
npm verb linkStuff   '/usr/lib/node_modules',
npm verb linkStuff   false,
npm verb linkStuff   '/usr/lib/node_modules/ws/node_modules' ]
npm info linkStuff commander@0.6.1
npm verb linkBins commander@0.6.1
npm verb linkMans commander@0.6.1
npm verb rebuildBundles commander@0.6.1
npm info install commander@0.6.1
npm info postinstall commander@0.6.1
npm verb about to build /usr/lib/node_modules/ws
npm info build /usr/lib/node_modules/ws
npm verb from cache /usr/lib/node_modules/ws/package.json
npm verb linkStuff [ true, '/usr/lib/node_modules', true, '/usr/lib/node_modules' ]
npm info linkStuff ws@0.4.20
npm verb linkBins ws@0.4.20
npm verb link bins [ { wscat: './bin/wscat' }, '/usr/bin', true ]
npm verb linkMans ws@0.4.20
npm verb rebuildBundles ws@0.4.20
npm verb rebuildBundles [ 'options', 'commander', 'tinycolor' ]
/usr/bin/wscat -> /usr/lib/node_modules/ws/bin/wscat
npm info install ws@0.4.20
npm verb unsafe-perm in lifecycle false

> ws@0.4.20 install /usr/lib/node_modules/ws
> node install.js

npm verb set uid from=0 to=nobody
npm verb set uid from=0 to=65534
[ws v0.4.20] Attempting to compile blazing fast native extensions.
gyp info it worked if it ends with ok
gyp info using node-gyp@0.5.2
gyp info using node@0.6.19
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded for `python` /usr/bin/python
gyp verb get node dir no --target version specified, falling back to host node version: v0.6.19
gyp verb command install [ 'v0.6.19' ]
gyp verb install input version string v0.6.19
gyp verb installing legacy version? true
gyp verb install installing version: 0.6.19
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp WARN install got an error, rolling back install
gyp verb command remove [ '0.6.19' ]
gyp verb remove using node-gyp dir: /root/.node-gyp
gyp verb remove removing target version: 0.6.19
gyp verb remove removing development files for version: 0.6.19
gyp ERR! rebuild error Error: EACCES, stat '/root/.node-gyp/0.6.19'
gyp ERR! not ok
[ws v0.4.20] Native code compile failed (but the module will still work):
[ws v0.4.20] The native extensions are faster, but not required.
[ws v0.4.20] On Windows, native extensions require Visual Studio and Python.
[ws v0.4.20] On Unix, native extensions require Python, make and a C++ compiler.
[ws v0.4.20] Start npm with --ws:verbose to show compilation output (if any).
npm info postinstall ws@0.4.20
tinycolor@0.0.1 /usr/lib/node_modules/ws/node_modules/tinycolor

options@0.0.3 /usr/lib/node_modules/ws/node_modules/options

commander@0.6.1 /usr/lib/node_modules/ws/node_modules/commander

ws@0.4.20 /usr/lib/node_modules/ws
npm verb exit [ 0, true ]
npm info ok


If I try to start etherpad, it trys to install ws without the -g and that bombs.
Code: Select all
root@pisces:~/compile/etherpad-lite# npm install ws --verbose --ws:verbose
npm info it worked if it ends with ok
npm verb cli [ 'node',
npm verb cli   '/usr/bin/npm',
npm verb cli   'install',
npm verb cli   'ws',
npm verb cli   '--verbose',
npm verb cli   '--ws:verbose' ]
npm info using npm@1.1.35
npm info using node@v0.6.19
npm verb config file /root/.npmrc
npm verb config file /usr/etc/npmrc
npm verb config file /usr/lib/node_modules/npm/npmrc
npm verb read json /root/compile/etherpad-lite/package.json
npm verb read json /root/compile/etherpad-lite/package.json
npm verb cache add [ 'ws', null ]
npm verb parsed url { pathname: 'ws', path: 'ws', href: 'ws' }
npm verb lock ws /root/.npm/1457b75dc8c5500c0f1d4503cf801b60deb045a4-ws.lock
npm verb addNamed [ 'ws', '' ]
npm verb addNamed [ null, '' ]
npm verb lock ws@ /root/.npm/e88fe629736a40327dea302c0f5d51d0444efb92-ws-.lock
npm verb url raw ws
npm verb url resolving [ 'https://registry.npmjs.org/', './ws' ]
npm verb url resolved https://registry.npmjs.org/ws
npm info retry registry request attempt 1 at 20:57:30
npm verb etag "CHAXLQY93RDLFAVUYVIWHAGQQ"
npm http GET https://registry.npmjs.org/ws
npm http 304 https://registry.npmjs.org/ws
npm verb etag ws from cache
npm verb addNamed [ 'ws', '0.4.20' ]
npm verb addNamed [ '0.4.20', '0.4.20' ]
npm verb lock ws@0.4.20 /root/.npm/c8009c2df7c40feb8e92af166ef128648641db3f-ws-0-4-20.lock
npm verb read json /root/.npm/ws/0.4.20/package/package.json
npm info install ws@0.4.20 into /root/compile/etherpad-lite
npm info installOne ws@0.4.20
npm verb from cache /root/.npm/ws/0.4.20/package/package.json
npm info /root/compile/etherpad-lite/node_modules/ws unbuild
npm verb read json /root/compile/etherpad-lite/node_modules/ws/package.json
npm verb tar unpack /root/.npm/ws/0.4.20/package.tgz
npm verb lock /root/compile/etherpad-lite/node_modules/ws /root/.npm/bfb8f3d14fa3c29ac20ddc8c6ef3fa69423ba0c8--root-compile-etherpad-lite-node-modules-ws.lock
npm verb read json /root/compile/etherpad-lite/node_modules/ws/package.json
npm info preinstall ws@0.4.20
npm verb from cache /root/compile/etherpad-lite/node_modules/ws/package.json
npm verb readDependencies using package.json deps
npm verb from cache /root/compile/etherpad-lite/node_modules/ws/package.json
npm verb readDependencies using package.json deps
npm verb cache add [ 'commander@~0.6.1', null ]
npm verb parsed url { pathname: 'commander@~0.6.1',
npm verb parsed url   path: 'commander@~0.6.1',
npm verb parsed url   href: 'commander@~0.6.1' }
npm verb parsed url { pathname: '~0.6.1', path: '~0.6.1', href: '~0.6.1' }
npm verb addNamed [ 'commander', '~0.6.1' ]
npm verb addNamed [ null, '>=0.6.1- <0.7.0-' ]
npm verb lock commander@~0.6.1 /root/.npm/5c53196dba33b5e06a20da032b11e3dc8e38b558-commander-0-6-1.lock
npm verb cache add [ 'tinycolor@0.x', null ]
npm verb parsed url { pathname: 'tinycolor@0.x',
npm verb parsed url   path: 'tinycolor@0.x',
npm verb parsed url   href: 'tinycolor@0.x' }
npm verb parsed url { pathname: '0.x', path: '0.x', href: '0.x' }
npm verb addNamed [ 'tinycolor', '0.x' ]
npm verb addNamed [ null, '>=0.0.0- <1.0.0-' ]
npm verb lock tinycolor@0.x /root/.npm/8f23180dcf23bb7cb23ba0f8090c14059dc41828-tinycolor-0-x.lock
npm verb cache add [ 'options@latest', null ]
npm verb parsed url { pathname: 'options@latest',
npm verb parsed url   path: 'options@latest',
npm verb parsed url   href: 'options@latest' }
npm verb parsed url { pathname: 'latest', path: 'latest', href: 'latest' }
npm verb addNamed [ 'options', 'latest' ]
npm verb addNamed [ null, null ]
npm verb lock options@latest /root/.npm/479efb467caa3a4d0ad4b7f679da971a867be7b4-options-latest.lock
npm info addNameTag [ 'options', 'latest' ]
npm verb url raw tinycolor
npm verb url resolving [ 'https://registry.npmjs.org/', './tinycolor' ]
npm verb url resolved https://registry.npmjs.org/tinycolor
npm info retry registry request attempt 1 at 20:57:35
npm verb etag "8ZWKU4LY7IZ7MX4I3X3HL3N3I"
npm http GET https://registry.npmjs.org/tinycolor
npm verb url raw options
npm verb url resolving [ 'https://registry.npmjs.org/', './options' ]
npm verb url resolved https://registry.npmjs.org/options
npm info retry registry request attempt 1 at 20:57:35
npm verb etag "12FQAEKC0ZURS2XWFQS657V9A"
npm http GET https://registry.npmjs.org/options
npm verb url raw commander
npm verb url resolving [ 'https://registry.npmjs.org/', './commander' ]
npm verb url resolved https://registry.npmjs.org/commander
npm info retry registry request attempt 1 at 20:57:35
npm verb etag "68E2R6PRBU1JXQDGMML1UOOCZ"
npm http GET https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/tinycolor
npm verb etag tinycolor from cache
npm verb addNamed [ 'tinycolor', '0.0.1' ]
npm verb addNamed [ '0.0.1', '0.0.1' ]
npm verb lock tinycolor@0.0.1 /root/.npm/8ace0652b52015f95615bc8620c3bddcfe10d933-tinycolor-0-0-1.lock
npm verb read json /root/.npm/tinycolor/0.0.1/package/package.json
npm http 304 https://registry.npmjs.org/options
npm verb etag options from cache
npm verb addNamed [ 'options', '0.0.3' ]
npm verb addNamed [ '0.0.3', '0.0.3' ]
npm verb lock options@0.0.3 /root/.npm/82d096230b658781488923750b27aaa4d941a518-options-0-0-3.lock
npm http 304 https://registry.npmjs.org/commander
npm verb etag commander from cache
npm verb read json /root/.npm/options/0.0.3/package/package.json
npm verb addNamed [ 'commander', '0.6.1' ]
npm verb addNamed [ '0.6.1', '0.6.1' ]
npm verb lock commander@0.6.1 /root/.npm/fa16a2cefe1a1555b6a4ca8335114a4d48b69f67-commander-0-6-1.lock
npm verb read json /root/.npm/commander/0.6.1/package/package.json
npm info install tinycolor@0.0.1 into /root/compile/etherpad-lite/node_modules/ws
npm info install options@0.0.3 into /root/compile/etherpad-lite/node_modules/ws
npm info install commander@0.6.1 into /root/compile/etherpad-lite/node_modules/ws
npm info installOne tinycolor@0.0.1
npm info installOne options@0.0.3
npm info installOne commander@0.6.1
npm verb from cache /root/.npm/tinycolor/0.0.1/package/package.json
npm verb from cache /root/.npm/options/0.0.3/package/package.json
npm verb from cache /root/.npm/commander/0.6.1/package/package.json
npm info /root/compile/etherpad-lite/node_modules/ws/node_modules/tinycolor unbuild
npm verb read json /root/compile/etherpad-lite/node_modules/ws/node_modules/tinycolor/package.json
npm info /root/compile/etherpad-lite/node_modules/ws/node_modules/options unbuild
npm verb read json /root/compile/etherpad-lite/node_modules/ws/node_modules/options/package.json
npm info /root/compile/etherpad-lite/node_modules/ws/node_modules/commander unbuild
npm verb read json /root/compile/etherpad-lite/node_modules/ws/node_modules/commander/package.json
npm verb tar unpack /root/.npm/tinycolor/0.0.1/package.tgz
npm verb tar unpack /root/.npm/options/0.0.3/package.tgz
npm verb tar unpack /root/.npm/commander/0.6.1/package.tgz
npm verb lock /root/compile/etherpad-lite/node_modules/ws/node_modules/tinycolor /root/.npm/162ce1868ade80fe5a7140092a123cc04113acca--root-compile-etherpad-lite-node-modules-ws-node-modules-tinycolor.lock
npm verb lock /root/compile/etherpad-lite/node_modules/ws/node_modules/options /root/.npm/cca2a472bb71bdd83e125e97133e0c1c2e0c522e--root-compile-etherpad-lite-node-modules-ws-node-modules-options.lock
npm verb lock /root/compile/etherpad-lite/node_modules/ws/node_modules/commander /root/.npm/8a62bf5f3affa8f9cd3aa51abad38a0482743790--root-compile-etherpad-lite-node-modules-ws-node-modules-commander.lock
npm verb read json /root/compile/etherpad-lite/node_modules/ws/node_modules/tinycolor/package.json
npm info preinstall tinycolor@0.0.1
npm verb from cache /root/compile/etherpad-lite/node_modules/ws/node_modules/tinycolor/package.json
npm verb readDependencies using package.json deps
npm verb from cache /root/compile/etherpad-lite/node_modules/ws/node_modules/tinycolor/package.json
npm verb readDependencies using package.json deps
npm verb about to build /root/compile/etherpad-lite/node_modules/ws/node_modules/tinycolor
npm info build /root/compile/etherpad-lite/node_modules/ws/node_modules/tinycolor
npm verb from cache /root/compile/etherpad-lite/node_modules/ws/node_modules/tinycolor/package.json
npm verb linkStuff [ false,
npm verb linkStuff   false,
npm verb linkStuff   false,
npm verb linkStuff   '/root/compile/etherpad-lite/node_modules/ws/node_modules' ]
npm info linkStuff tinycolor@0.0.1
npm verb linkBins tinycolor@0.0.1
npm verb linkMans tinycolor@0.0.1
npm verb rebuildBundles tinycolor@0.0.1
npm info install tinycolor@0.0.1
npm verb read json /root/compile/etherpad-lite/node_modules/ws/node_modules/options/package.json
npm info postinstall tinycolor@0.0.1
npm info preinstall options@0.0.3
npm verb from cache /root/compile/etherpad-lite/node_modules/ws/node_modules/options/package.json
npm verb readDependencies using package.json deps
npm verb from cache /root/compile/etherpad-lite/node_modules/ws/node_modules/options/package.json
npm verb readDependencies using package.json deps
npm verb about to build /root/compile/etherpad-lite/node_modules/ws/node_modules/options
npm info build /root/compile/etherpad-lite/node_modules/ws/node_modules/options
npm verb from cache /root/compile/etherpad-lite/node_modules/ws/node_modules/options/package.json
npm verb read json /root/compile/etherpad-lite/node_modules/ws/node_modules/commander/package.json
npm verb linkStuff [ false,
npm verb linkStuff   false,
npm verb linkStuff   false,
npm verb linkStuff   '/root/compile/etherpad-lite/node_modules/ws/node_modules' ]
npm info linkStuff options@0.0.3
npm verb linkBins options@0.0.3
npm verb linkMans options@0.0.3
npm verb rebuildBundles options@0.0.3
npm info install options@0.0.3
npm info postinstall options@0.0.3
npm info preinstall commander@0.6.1
npm verb from cache /root/compile/etherpad-lite/node_modules/ws/node_modules/commander/package.json
npm verb readDependencies using package.json deps
npm verb from cache /root/compile/etherpad-lite/node_modules/ws/node_modules/commander/package.json
npm verb readDependencies using package.json deps
npm verb about to build /root/compile/etherpad-lite/node_modules/ws/node_modules/commander
npm info build /root/compile/etherpad-lite/node_modules/ws/node_modules/commander
npm verb from cache /root/compile/etherpad-lite/node_modules/ws/node_modules/commander/package.json
npm verb linkStuff [ false,
npm verb linkStuff   false,
npm verb linkStuff   false,
npm verb linkStuff   '/root/compile/etherpad-lite/node_modules/ws/node_modules' ]
npm info linkStuff commander@0.6.1
npm verb linkBins commander@0.6.1
npm verb linkMans commander@0.6.1
npm verb rebuildBundles commander@0.6.1
npm info install commander@0.6.1
npm info postinstall commander@0.6.1
npm verb about to build /root/compile/etherpad-lite/node_modules/ws
npm info build /root/compile/etherpad-lite/node_modules/ws
npm verb from cache /root/compile/etherpad-lite/node_modules/ws/package.json
npm verb linkStuff [ false,
npm verb linkStuff   false,
npm verb linkStuff   false,
npm verb linkStuff   '/root/compile/etherpad-lite/node_modules' ]
npm info linkStuff ws@0.4.20
npm verb linkBins ws@0.4.20
npm verb link bins [ { wscat: './bin/wscat' },
npm verb link bins   '/root/compile/etherpad-lite/node_modules/.bin',
npm verb link bins   false ]
npm verb linkMans ws@0.4.20
npm verb rebuildBundles ws@0.4.20
npm verb rebuildBundles [ 'options', 'commander', 'tinycolor' ]
npm info install ws@0.4.20
npm verb unsafe-perm in lifecycle false

> ws@0.4.20 install /root/compile/etherpad-lite/node_modules/ws
> node install.js

npm verb set uid from=0 to=1000

module.js:337
    throw new Error("Cannot find module '" + request + "'");
          ^
Error: Cannot find module '/root/compile/etherpad-lite/node_modules/ws/install.js'
    at Function._resolveFilename (module.js:337:11)
    at Function._load (module.js:279:25)
    at Array.0 (module.js:484:10)
    at EventEmitter._tickCallback (node.js:190:39)
npm info ws@0.4.20 Failed to exec install script
npm info /root/compile/etherpad-lite/node_modules/ws unbuild
npm verb from cache /root/compile/etherpad-lite/node_modules/ws/package.json
npm info preuninstall ws@0.4.20
npm info uninstall ws@0.4.20
npm verb true,/root/compile/etherpad-lite/node_modules,/root/compile/etherpad-lite/node_modules unbuild ws@0.4.20
npm verb /root/compile/etherpad-lite/node_modules/.bin,[object Object] binRoot
npm info postuninstall ws@0.4.20
npm ERR! ws@0.4.20 install: `node install.js`
npm ERR! `sh "-c" "node install.js"` failed with 1
npm ERR!
npm ERR! Failed at the ws@0.4.20 install script.
npm ERR! This is most likely a problem with the ws package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls ws
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.1.9+
npm ERR! command "node" "/usr/bin/npm" "install" "ws" "--verbose" "--ws:verbose"
npm ERR! cwd /root/compile/etherpad-lite
npm ERR! node -v v0.6.19
npm ERR! npm -v 1.1.35
npm ERR! code ELIFECYCLE
npm ERR! message ws@0.4.20 install: `node install.js`
npm ERR! message `sh "-c" "node install.js"` failed with 1
npm verb exit [ 1, true ]
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /root/compile/etherpad-lite/npm-debug.log
npm ERR! not ok code undefined
npm ERR! not ok code 1
Posts: 8
Joined: Wed Jun 27, 2012 10:02 am
by mpthompson » Thu Jul 05, 2012 10:35 pm
I'm a little confused by the recent postings to this thread (don't worry, it's my problem. Not yours). Is there something that still needs to be done to get libv8, nodejs and npm working within the Raspbian repository? If so, please let me know what specifically should be added. Otherwise, I'll assume that things are working as far as the Raspbian repository is concerned.
User avatar
Forum Moderator
Forum Moderator
Posts: 620
Joined: Fri Feb 03, 2012 7:18 pm
Location: San Carlos, CA
by posi » Fri Jul 06, 2012 7:17 am
mpthompson wrote:Is there something that still needs to be done to get libv8, nodejs and npm working within the Raspbian repository?


Hello Mike,

first I would like to THANK YOU for your work! Great job!!
I'm still not able to install npm - hope this is a minor repository thing that is easy to address. Think it was mentioned a few posts above already:

Code: Select all
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 npm : Depends: node-request but it is not installable
       Depends: node-mkdirp but it is not installable
       Depends: node-minimatch but it is not installable
       Depends: node-semver but it is not installable
       Depends: node-ini but it is not installable
       Depends: node-graceful-fs but it is not installable
       Depends: node-abbrev but it is not installable
       Depends: node-nopt but it is not installable
       Depends: node-fstream but it is not installable
       Depends: node-rimraf but it is not installable
       Depends: node-tar but it is not installable
       Depends: node-which but it is not installable
E: Unable to correct problems, you have held broken packages.


Regards
Patrick
Posts: 3
Joined: Thu Jul 05, 2012 6:55 pm
by josch » Fri Jul 06, 2012 7:39 am
@mthompson.
Yes, it should work.
It's just that on my RPi on nodejs module doesn't compile. We are just figuring it out.


Bye Jochen
Posts: 8
Joined: Wed Jun 27, 2012 10:02 am
by mpthompson » Fri Jul 06, 2012 9:12 pm
posi wrote:I'm still not able to install npm - hope this is a minor repository thing that is easy to address.


OK, I think I resolved all the dependencies. I can now do an 'apt-get install npm' without dependency issues. It will still take a few hours for the updates to hit the public Raspbian repositories, but it should work for you after that.
User avatar
Forum Moderator
Forum Moderator
Posts: 620
Joined: Fri Feb 03, 2012 7:18 pm
Location: San Carlos, CA
by posi » Sat Jul 07, 2012 7:28 am
Thanks Mike, works like a charm!!!

Patrick
Posts: 3
Joined: Thu Jul 05, 2012 6:55 pm
by josch » Mon Jul 09, 2012 10:20 am
Now, I got it. I needed to install node-gyp.
I did:
Code: Select all
npm install -g node-gyp


Bye Jochen
Posts: 8
Joined: Wed Jun 27, 2012 10:02 am
by beuh » Wed Dec 26, 2012 1:02 pm
Hello I try to install npm today, it seems that apt dependencies problem is back

Code: Select all
pi@raspberrypi ~ $ sudo apt-get install npm
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 npm : Depends: nodejs but it is not going to be installed
       Depends: nodejs-dev but it is not going to be installed
       Depends: node-request but it is not going to be installed
       Depends: node-mkdirp but it is not going to be installed
       Depends: node-minimatch but it is not going to be installed
       Depends: node-semver but it is not going to be installed
       Depends: node-ini but it is not going to be installed
       Depends: node-graceful-fs but it is not going to be installed
       Depends: node-abbrev but it is not going to be installed
       Depends: node-nopt but it is not going to be installed
       Depends: node-fstream but it is not going to be installed
       Depends: node-rimraf but it is not going to be installed
       Depends: node-tar but it is not going to be installed
       Depends: node-which but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Did some one push a new package and did the same error, or the problem is on my side?

Thanks.
Posts: 2
Joined: Wed Dec 26, 2012 12:58 pm
by plugwash » Wed Dec 26, 2012 2:50 pm
This was my screwup, sorry. Working on getting it fixed.
Forum Moderator
Forum Moderator
Posts: 2355
Joined: Wed Dec 28, 2011 11:45 pm