Posts: 9
Joined: Fri Jul 19, 2013 9:10 am

node-less package missing; npm install error

Tue May 26, 2015 11:48 am

Hi all.
found a missing package and a library error in current Debian Raspbian
Which maintainer could I inform for the problems ?

The problem arise when trying to install leccs compiler

my current version is
[email protected] ~ $ uname -a
Linux raspberrypi 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/Linux

1) if I try to install node-less, package is not found
2)if i try to install it via npm, this is the error found

Code: Select all

[email protected] ~ $ sudo npm install -g less
npm http GET

npm ERR! Error: failed to fetch from registry: less
npm ERR!     at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR!     at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR!     at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
npm ERR!     at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR!     at Request.<anonymous> (/usr/lib/nodejs/request/main.js:212:58)
npm ERR!     at Request.emit (events.js:88:20)
npm ERR!     at ClientRequest.<anonymous> (/usr/lib/nodejs/request/main.js:412:12)
npm ERR!     at ClientRequest.g (events.js:156:14)
npm ERR!     at ClientRequest.emit (events.js:67:17)
npm ERR!     at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1256:7)
npm ERR! You may report this log at:
npm ERR!     <>
npm ERR! or use
npm ERR!     reportbug --attach /home/pi/npm-debug.log npm
npm ERR! 
npm ERR! System Linux 3.18.11-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "less"
npm ERR! cwd /home/pi
npm ERR! node -v v0.6.19
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: less
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/npm-debug.log
npm not ok

Posts: 14767
Joined: Tue Jul 17, 2012 3:02 pm

Re: node-less package missing; npm install error

Wed May 27, 2015 10:21 am


Firstly that less is a node.js package managed by the node package manager npm. As such I would not expect the Raspbian or Debian maintainers to be much help with it.

How did you install node on your Pi? If you installed node from a regular Raspbian package I think there may be a problem. The last time I did that it installed a very old version of node and things have changed quite a bit since that version.

You can get your node version with:

$ node --version
$ npm --version

It would be better to get a more recent node by following the nice install instructions provided by AdaFruit: ... ode-dot-js or perhaps install from the builds for the Raspberry Pi provided on the node.js web site.

Don't forget to uninstall any original Raspbian node package first.
Memory in C++ is a leaky abstraction .

Return to “Raspbian”