Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Npm fails installation in (ubuntu 13.10) #148

Closed
mtuchi opened this issue Aug 31, 2014 · 7 comments
Closed

Npm fails installation in (ubuntu 13.10) #148

mtuchi opened this issue Aug 31, 2014 · 7 comments

Comments

@mtuchi
Copy link

mtuchi commented Aug 31, 2014

gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:104:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:862:12)
gyp ERR! System Linux 3.11.0-12-generic
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/contextify
gyp ERR! node -v v0.11.10
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok 
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/tough-cookie
npm http 304 https://registry.npmjs.org/mime-types
npm http 304 https://registry.npmjs.org/node-uuid
npm http 304 https://registry.npmjs.org/tunnel-agent
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/hawk/1.1.1
npm http 304 https://registry.npmjs.org/aws-sign2
npm http 304 https://registry.npmjs.org/oauth-sign
npm http 304 https://registry.npmjs.org/stringstream
npm http GET https://registry.npmjs.org/combined-stream
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/async
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 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/async
npm http 304 https://registry.npmjs.org/combined-stream
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/assert-plus/0.1.2
npm http 304 https://registry.npmjs.org/asn1/0.1.11
npm http 304 https://registry.npmjs.org/ctype/0.5.2
npm http 304 https://registry.npmjs.org/punycode
npm http 304 https://registry.npmjs.org/boom
npm http 304 https://registry.npmjs.org/cryptiles
npm http 304 https://registry.npmjs.org/hoek
npm http 304 https://registry.npmjs.org/sntp
npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/tough-cookie'
npm ERR! error rolling back  [email protected] { [Error: ENOTEMPTY, rmdir '/home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/tough-cookie']
npm ERR! error rolling back   stack: 'Error: ENOTEMPTY, rmdir \'/home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/tough-cookie\'',
npm ERR! error rolling back   errno: -39,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/tough-cookie' }
npm ERR! Error: ENOENT, lstat '/home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/http-signature/node_modules/assert-plus/assert.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Linux 3.11.0-12-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /home/imma/TaarifaWaterpoints
npm ERR! node -v v0.11.10
npm ERR! npm -v 1.3.22
npm ERR! path /home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/http-signature/node_modules/assert-plus/assert.js
npm ERR! fstream_path /home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/http-signature/node_modules/assert-plus/assert.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:97:15)
npm ERR! Error: ENOENT, lstat '/home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/form-data/node_modules/async/README.md'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Linux 3.11.0-12-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /home/imma/TaarifaWaterpoints
npm ERR! node -v v0.11.10
npm ERR! npm -v 1.3.22
npm ERR! path /home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/form-data/node_modules/async/README.md
npm ERR! fstream_path /home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/form-data/node_modules/async/README.md
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:97:15)
npm ERR! Error: ENOENT, lstat '/home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/hawk/node_modules/cryptiles/package.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Linux 3.11.0-12-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /home/imma/TaarifaWaterpoints
npm ERR! node -v v0.11.10
npm ERR! npm -v 1.3.22
npm ERR! path /home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/hawk/node_modules/cryptiles/package.json
npm ERR! fstream_path /home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/hawk/node_modules/cryptiles/package.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:97:15)
npm ERR! Error: ENOENT, lstat '/home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/hawk/node_modules/hoek/package.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Linux 3.11.0-12-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /home/imma/TaarifaWaterpoints
npm ERR! node -v v0.11.10
npm ERR! npm -v 1.3.22
npm ERR! path /home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/hawk/node_modules/hoek/package.json
npm ERR! fstream_path /home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/hawk/node_modules/hoek/package.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:97:15)
npm ERR! Error: ENOENT, lstat '/home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/hawk/node_modules/sntp/package.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Linux 3.11.0-12-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /home/imma/TaarifaWaterpoints
npm ERR! node -v v0.11.10
npm ERR! npm -v 1.3.22
npm ERR! path /home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/hawk/node_modules/sntp/package.json
npm ERR! fstream_path /home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/hawk/node_modules/sntp/package.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:97:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/hawk/node_modules'
npm ERR! error rolling back  [email protected] { [Error: ENOTEMPTY, rmdir '/home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/hawk/node_modules']
npm ERR! error rolling back   stack: 'Error: ENOTEMPTY, rmdir \'/home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/hawk/node_modules\'',
npm ERR! error rolling back   errno: -39,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/hawk/node_modules' }
npm ERR! Error: ENOENT, lstat '/home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/reader.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Linux 3.11.0-12-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /home/imma/TaarifaWaterpoints
npm ERR! node -v v0.11.10
npm ERR! npm -v 1.3.22
npm ERR! path /home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/reader.js
npm ERR! fstream_path /home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/reader.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:97:15)
npm ERR! Error: ENOENT, lstat '/home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/tough-cookie/node_modules/punycode/punycode.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Linux 3.11.0-12-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /home/imma/TaarifaWaterpoints
npm ERR! node -v v0.11.10
npm ERR! npm -v 1.3.22
npm ERR! path /home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/tough-cookie/node_modules/punycode/punycode.js
npm ERR! fstream_path /home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/tough-cookie/node_modules/punycode/punycode.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:97:15)
npm ERR! Error: ENOENT, lstat '/home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/form-data/node_modules/mime/types/mime.types'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Linux 3.11.0-12-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /home/imma/TaarifaWaterpoints
npm ERR! node -v v0.11.10
npm ERR! npm -v 1.3.22
npm ERR! path /home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/form-data/node_modules/mime/types/mime.types
npm ERR! fstream_path /home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/form-data/node_modules/mime/types/mime.types
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:97:15)
npm ERR! Error: ENOENT, open '/home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/hawk/node_modules/boom/Makefile'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Linux 3.11.0-12-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /home/imma/TaarifaWaterpoints
npm ERR! node -v v0.11.10
npm ERR! npm -v 1.3.22
npm ERR! path /home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/hawk/node_modules/boom/Makefile
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls contextify
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.11.0-12-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /home/imma/TaarifaWaterpoints
npm ERR! node -v v0.11.10
npm ERR! npm -v 1.3.22
npm ERR! code ELIFECYCLE
npm ERR! Error: ENOENT, lstat '/home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/http-signature/node_modules/ctype/ctio.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Linux 3.11.0-12-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /home/imma/TaarifaWaterpoints
npm ERR! node -v v0.11.10
npm ERR! npm -v 1.3.22
npm ERR! path /home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/http-signature/node_modules/ctype/ctio.js
npm ERR! fstream_path /home/imma/TaarifaWaterpoints/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/http-signature/node_modules/ctype/ctio.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:97:15)
npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/imma/TaarifaWaterpoints/npm-debug.log
npm ERR! not ok code 0
@mtuchi
Copy link
Author

mtuchi commented Aug 31, 2014

I tried number of solution still no lucky
any idea on how to solve this problem

@machakux
Copy link
Contributor

How did you get this (e.g, from which command, What are you trying to do)?
What have you tried?

I guess this is not directly caused by TaarifaWaterpoints or TaarifaAPI but its something about your environment setup so probably its better if you posted this to taarifa-dev mailing list.

@kynan
Copy link
Member

kynan commented Aug 31, 2014

Your output doesn't seem to include the actual error. I suspect you don't have a C++ compiler. Try the following:

sudo apt-get install build-essential gcc g++

@kynan
Copy link
Member

kynan commented Aug 31, 2014

Otherwise, maybe this is the issue.

@mtuchi
Copy link
Author

mtuchi commented Oct 7, 2014

i found the solution
you have to add the shell start up file in .bashrc http://virtualenvwrapper.readthedocs.org/en/latest/install.html#shell-startup-file

before you do the npm install command

@mtuchi
Copy link
Author

mtuchi commented Oct 7, 2014

To open the bash file
you need to type this command on ubuntu terminal

gedit .bashrc

the . means the file is hiden so you have to be in your Home directory

@dgorissen
Copy link
Member

Great that you solved it.

Close the issue if it is fully resolved for you.

@mtuchi mtuchi closed this as completed Oct 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants