Picture of Peter Seymour
Ubuntu 14.04 installation issues
by Peter Seymour - Wednesday, 3 September 2014, 9:54 PM
 

Hello,

 

I am trying to build a development site on our current development website. It is an intel server running ubuntu 14.04.

It installed git and nodejs fine but when I get to adapt-cli no matter what I try I get lots of errors. I tried installing as me using sudo, as root as root using sudo. Nothing. I've cleared and cleaned the cache, removed all node_modules directory and .npm/ and other directories only fall on my face each time. Here is the latest error log:

sudo npm install adapt-cli -g

npmWARNengine npm@1.3.26: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"0.10.31","npm":"2.0.0-beta.0"})

npmWARNpackage.json github-url-from-git@1.1.1 No repository field.

npmERR! Error: version not found: map-key@0.1.1

npmERR!     at setData (/usr/lib/node_modules/npm/lib/cache/add-named.js:127:12)

npmERR!     at saved (/usr/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:167:7)

npmERR!     at /usr/lib/node_modules/npm/node_modules/cmd-shim/node_modules/graceful-fs/polyfills.js:133:7

npmERR!     at Object.oncomplete (fs.js:107:15)

npmERR! If you need help, you may report this *entire* log,

npmERR! including the npm and node versions, at:

npmERR!     <http://github.com/npm/npm/issues>

 

npmERR!System Linux 3.13.0-34-generic

npmERR!command "node" "/usr/bin/npm" "install" "adapt-cli" "-g"

npmERR!cwd /home/peter

npmERR!node -v v0.10.31

npmERR!npm -v 2.0.0-beta.0

|

> buffertools@2.1.2 install /usr/lib/node_modules/adapt-cli/node_modules/slug/node_modules/unicode/node_modules/bufferstream/node_modules/buffertools

> node-gyp rebuild

 

gypWARNEACCES user "root" does not have permission to access the dev dir "/home/peter/.node-gyp/0.10.31"

gypWARNEACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/adapt-cli/node_modules/slug/node_modules/unicode/node_modules/bufferstream/node_modules/buffertools/.node-gyp"

gypWARNinstall got an error, rolling back install

gypWARNinstall got an error, rolling back install

gypERR!configure error 

gypERR!stack Error: getaddrinfo ENOTFOUND

gypERR!stack     at errnoException (dns.js:37:11)

gypERR!stack     at Object.onanswer [as oncomplete] (dns.js:124:16)

gypERR!System Linux 3.13.0-34-generic

gypERR!command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

gypERR!cwd /usr/lib/node_modules/adapt-cli/node_modules/slug/node_modules/unicode/node_modules/bufferstream/node_modules/buffertools

gypERR!node -v v0.10.31

gypERR!node-gyp -v v1.0.1

gypERR!not ok 

npmWARNoptional dep failed, continuing buffertools@2.1.2

 

> unicode@0.6.0 postinstall /usr/lib/node_modules/adapt-cli/node_modules/slug/node_modules/unicode

> node install.js

 

 

module.js:340

    throw err;

          ^

Error: Cannot find module '/usr/lib/node_modules/adapt-cli/node_modules/slug/node_modules/unicode/install.js'

    at Function.Module._resolveFilename (module.js:338:15)

    at Function.Module._load (module.js:280:25)

    at Function.Module.runMain (module.js:497:10)

    at startup (node.js:119:16)

    at node.js:906:3

npmWARNoptional dep failed, continuing uglify-js@2.3.6

npmERR! 

npmERR! Additional logging details can be found in:

npmERR!     /home/peter/npm-debug.log

npmERR!not ok code 0

 

Picture of Wes Atkinson
Re: Ubuntu 14.04 installation issues
by Wes Atkinson - Monday, 8 September 2014, 9:20 AM
 

Hi, 

I had a similar problem on 64bit Ubuntu on packages that seem to still try and execute commands using "node". 

you can try this command: 

sudo apt-get install nodejs-legacy

This seems to resolve the conflict between "node" (a preinstalled program on Ubuntu, nothing to do with nodejs) and nodejs, which also used to be called "node" until it was renamed. 

Failing that, I have a few more ideas, but try that first, then rerun " sudo npm install adapt-cli -g "

Thanks

Wes