A
A
alysenko2017-06-23 12:37:16
virtual box
alysenko, 2017-06-23 12:37:16

How to fix "npm install" issue on ubuntu?

Such a situation:
There is VirtualB: host - Windows 10, guest - Ubuntu 14.
On the guest (Ubuntu) I try to run "npm install". But the process goes to a certain place, and then freezes.

...
npm http GET https://registry.npmjs.org/co
npm http GET https://registry.npmjs.org/json-stable-stringify
npm http 304 https://registry.npmjs.org/co
npm http 304 https://registry.npmjs.org/json-stable-stringify
npm WARN engine [email protected]: wanted: {"iojs":">= 1.0.0","node":">= 0.12.0"} (current: {"node":"v0.10.25","npm":"1.3.10"})
npm http GET https://registry.npmjs.org/jsonify
npm http 304 https://registry.npmjs.org/jsonify
 
> [email protected] install /var/www/project/src/node_modules/laravel-elixir-vue-2/node_modules/node-sass
> node scripts/install.js
 
npm WARN engine [email protected]: wanted: {"iojs":">= 1.0.0","node":">= 0.12.0"} (current: {"node":"v0.10.25","npm":"1.3.10"})
Cached binary found at /home/aleksandr/.npm/node-sass/4.5.3/linux-ia32-11_binding.node
 
> [email protected] install /var/www/project/src/node_modules/laravel-elixir-vue/node_modules/node-sass
> node scripts/install.js
 
 
> [email protected] postinstall /var/www/project/src/node_modules/laravel-elixir-vue-2/node_modules/node-sass
> node scripts/build.js
 
Binary found at /var/www/project/src/node_modules/laravel-elixir-vue-2/node_modules/node-sass/vendor/linux-ia32-11/binding.node
Testing binary
Binary is fine
Cached binary found at /home/aleksandr/.npm/node-sass/4.5.3/linux-ia32-11_binding.node
 
> [email protected] postinstall /var/www/project/src/node_modules/laravel-elixir-vue/node_modules/node-sass
> node scripts/build.js
 
Binary found at /var/www/project/src/node_modules/laravel-elixir-vue/node_modules/node-sass/vendor/linux-ia32-11/binding.node
Testing binary
Binary is fine
npm http GET https://registry.npmjs.org/co
npm http GET https://registry.npmjs.org/json-stable-stringify
npm http 304 https://registry.npmjs.org/co
npm http 304 https://registry.npmjs.org/json-stable-stringify
npm WARN engine [email protected]: wanted: {"iojs":">= 1.0.0","node":">= 0.12.0"} (current: {"node":"v0.10.25","npm":"1.3.10"})
npm http GET https://registry.npmjs.org/jsonify
npm http 304 https://registry.npmjs.org/jsonify

And everything freezes in this place.
Does anyone know what this might be related to?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nazar Mokrinsky, 2017-06-23
@alysenko

I think you have a very old version of Node.js and NPM. Install fresh 8.1.2 from here: https://nodejs.org/en/download/package-manager/#de...
I have on Ubuntu 17.10 x64 with Node.js 8.1.2 and NPM 5.0.3 your package.json installed without problems.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question