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

Error when installing on a new machine #6

Open
mickysantomax opened this issue Oct 30, 2014 · 0 comments
Open

Error when installing on a new machine #6

mickysantomax opened this issue Oct 30, 2014 · 0 comments

Comments

@mickysantomax
Copy link

I'm trying to install and run the server in a new Ubuntu 14.04 virtual machine,
but I have the following error:

sudo npm install
[sudo] password for michele:
npm http GET https://registry.npmjs.org/rdf-jsonify
npm http GET https://registry.npmjs.org/rdf-ext
npm http 304 https://registry.npmjs.org/rdf-jsonify
npm http 304 https://registry.npmjs.org/rdf-ext
npm http GET https://registry.npmjs.org/jsonld
npm http GET https://registry.npmjs.org/jsonld
npm http GET https://registry.npmjs.org/n3
npm http GET https://registry.npmjs.org/xmldom
npm http 304 https://registry.npmjs.org/xmldom
npm http 304 https://registry.npmjs.org/jsonld
npm http 304 https://registry.npmjs.org/jsonld
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/pkginfo
npm http GET https://registry.npmjs.org/xmldom/0.1.19
npm http GET https://registry.npmjs.org/jsdom
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/through
npm http GET https://registry.npmjs.org/jsonldify
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/pkginfo
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/through
npm http 304 https://registry.npmjs.org/n3
npm http GET https://registry.npmjs.org/xmldom/0.1.16
npm http 304 https://registry.npmjs.org/xmldom/0.1.19
npm http 304 https://registry.npmjs.org/jsdom
npm http 304 https://registry.npmjs.org/jsonldify
npm http GET https://registry.npmjs.org/keypress
npm http 304 https://registry.npmjs.org/xmldom/0.1.16
npm http 304 https://registry.npmjs.org/keypress
npm http GET https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/json-stringify-safe
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/mime-types
npm http GET https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/tough-cookie
npm http GET https://registry.npmjs.org/form-data
npm http GET https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/hawk/1.1.1
npm http GET https://registry.npmjs.org/aws-sign2
npm http GET https://registry.npmjs.org/stringstream
npm http GET https://registry.npmjs.org/bl
npm http GET https://registry.npmjs.org/caseless
npm http 304 https://registry.npmjs.org/forever-agent
npm http 304 https://registry.npmjs.org/json-stringify-safe
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/tunnel-agent
npm http 304 https://registry.npmjs.org/node-uuid
npm http 304 https://registry.npmjs.org/mime-types
npm http 304 https://registry.npmjs.org/tough-cookie
npm http 304 https://registry.npmjs.org/form-data
npm http 304 https://registry.npmjs.org/http-signature
npm http 304 https://registry.npmjs.org/oauth-sign
npm http 304 https://registry.npmjs.org/hawk/1.1.1
npm http 304 https://registry.npmjs.org/aws-sign2
npm http 304 https://registry.npmjs.org/stringstream
npm http 304 https://registry.npmjs.org/bl
npm http 304 https://registry.npmjs.org/caseless
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/combined-stream
npm http GET https://registry.npmjs.org/contextify
npm http GET https://registry.npmjs.org/htmlparser2
npm http GET https://registry.npmjs.org/nwmatcher
npm http GET https://registry.npmjs.org/cssom
npm http GET https://registry.npmjs.org/cssstyle
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/combined-stream
npm http GET https://registry.npmjs.org/readable-stream
npm http 304 https://registry.npmjs.org/cssom
npm http 304 https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/assert-plus/0.1.2
npm http GET https://registry.npmjs.org/asn1/0.1.11
npm http GET https://registry.npmjs.org/ctype/0.5.2
npm http 304 https://registry.npmjs.org/htmlparser2
npm http 304 https://registry.npmjs.org/cssstyle
npm http 304 https://registry.npmjs.org/asn1/0.1.11
npm http 304 https://registry.npmjs.org/nwmatcher
npm http 304 https://registry.npmjs.org/contextify
npm http 304 https://registry.npmjs.org/ctype/0.5.2
npm http 304 https://registry.npmjs.org/assert-plus/0.1.2
npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
npm http GET https://registry.npmjs.org/hawk
npm http GET https://registry.npmjs.org/aws-sign
npm http GET https://registry.npmjs.org/cookie-jar
npm http GET https://registry.npmjs.org/form-data/0.0.8
npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5
npm http 304 https://registry.npmjs.org/aws-sign
npm http 304 https://registry.npmjs.org/form-data/0.0.8
npm http 304 https://registry.npmjs.org/hawk
npm http 304 https://registry.npmjs.org/cookie-jar
npm http GET https://registry.npmjs.org/nan
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/core-util-is
npm http GET https://registry.npmjs.org/isarray/0.0.1
npm http GET https://registry.npmjs.org/string_decoder
npm http GET https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/isarray/0.0.1
npm http 304 https://registry.npmjs.org/core-util-is
npm http 304 https://registry.npmjs.org/string_decoder
npm http GET https://registry.npmjs.org/punycode
npm http GET https://registry.npmjs.org/hoek
npm http GET https://registry.npmjs.org/boom
npm http GET https://registry.npmjs.org/cryptiles
npm http GET https://registry.npmjs.org/sntp
npm http 304 https://registry.npmjs.org/punycode

> [email protected] install /home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/contextify
> node-gyp rebuild

npm http 304 https://registry.npmjs.org/hoek
npm http 304 https://registry.npmjs.org/cryptiles
npm http 304 https://registry.npmjs.org/boom
npm http 304 https://registry.npmjs.org/sntp
npm http GET https://registry.npmjs.org/domelementtype
npm http GET https://registry.npmjs.org/entities
npm http GET https://registry.npmjs.org/domhandler
npm http GET https://registry.npmjs.org/domutils
/bin/sh: 1: node: not found
gyp: Call to 'node -e "require('nan')"' returned exit status 127. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:431:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-24-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/contextify
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm http 304 https://registry.npmjs.org/domelementtype
npm http 304 https://registry.npmjs.org/entities
npm http 304 https://registry.npmjs.org/domutils
npm http 304 https://registry.npmjs.org/domhandler
npm ERR! Error: ENOENT, lstat '/home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/htmlparser2/node_modules/readable-stream/README.md'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/michele/codice/ldapp
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/htmlparser2/node_modules/readable-stream/README.md
npm ERR! fstream_path /home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/htmlparser2/node_modules/readable-stream/README.md
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, open '/home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/htmlparser2/node_modules/domelementtype/index.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/michele/codice/ldapp
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/htmlparser2/node_modules/domelementtype/index.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! EEXIST, mkdir '/home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/htmlparser2/node_modules/domutils'
File exists: /home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/htmlparser2/node_modules/domutils
Move it away, and try again.

npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/michele/codice/ldapp
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/htmlparser2/node_modules/domutils
npm ERR! fstream_path /home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/htmlparser2/node_modules/domutils/index.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /usr/lib/nodejs/mkdirp/index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! EEXIST, mkdir '/home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/htmlparser2/node_modules/domhandler'
File exists: /home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/htmlparser2/node_modules/domhandler
Move it away, and try again.

npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/michele/codice/ldapp
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/htmlparser2/node_modules/domhandler
npm ERR! fstream_path /home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/htmlparser2/node_modules/domhandler/index.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /usr/lib/nodejs/mkdirp/index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/htmlparser2/node_modules'
npm ERR! error rolling back  [email protected] { [Error: ENOTEMPTY, rmdir '/home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/htmlparser2/node_modules']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/htmlparser2/node_modules' }
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/htmlparser2/node_modules/entities'
npm ERR! error rolling back  [email protected] { [Error: ENOTEMPTY, rmdir '/home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/htmlparser2/node_modules/entities']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/htmlparser2/node_modules/entities' }
npm ERR! weird error 1
npm ERR! Error: ENOENT, lstat '/home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/request/node_modules/hawk/node_modules/hoek/test/index.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/michele/codice/ldapp
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/request/node_modules/hawk/node_modules/hoek/test/index.js
npm ERR! fstream_path /home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/request/node_modules/hawk/node_modules/hoek/test/index.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/cssstyle/lib/properties.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/michele/codice/ldapp
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/cssstyle/lib/properties.js
npm ERR! fstream_path /home/michele/codice/ldapp/node_modules/rdf-jsonify/node_modules/jsonld/node_modules/jsdom/node_modules/cssstyle/lib/properties.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)

> [email protected] install /home/michele/codice/ldapp/node_modules/rdf-ext/node_modules/jsonld/node_modules/jsdom/node_modules/contextify
> node-gyp rebuild

/bin/sh: 1: node: not found
gyp: Call to 'node -e "require('nan')"' returned exit status 127. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:431:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-24-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/michele/codice/ldapp/node_modules/rdf-ext/node_modules/jsonld/node_modules/jsdom/node_modules/contextify
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm http GET https://registry.npmjs.org/cssom
npm http 304 https://registry.npmjs.org/cssom
npm http GET https://registry.npmjs.org/core-util-is
npm http GET https://registry.npmjs.org/isarray/0.0.1
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/string_decoder
npm http 304 https://registry.npmjs.org/isarray/0.0.1
npm http 304 https://registry.npmjs.org/core-util-is
npm http 304 https://registry.npmjs.org/string_decoder
npm http 304 https://registry.npmjs.org/inherits
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/michele/codice/ldapp/npm-debug.log
npm ERR! not ok code 0

If I try to start the server, I get the following error:

michele@michele-ubuntu1404:~/codice/ldapp$ nodejs ldapp.js

module.js:340
    throw err;
          ^
Error: Cannot find module 'rdf-ext'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/michele/codice/ldapp/data/config.js:10:1)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

Thanks for the attention.

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

1 participant