Ubuntu 16.04.4 LTS can't install node.js ws
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
When attempting to install ws
(websocket library) to a project, get the following errors:
npm install -i ws
npm ERR! code EINVALIDTYPE
npm ERR! typeerror Error: Argument #2: Expected string or string but got null
npm ERR! typeerror at fetchPackageMetadata (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/fetch-package-metadata.js:36:3)
npm ERR! typeerror at limited (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/call-limit/call-limit.js:29:10)
npm ERR! typeerror at addDependency (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/install/deps.js:537:5)
npm ERR! typeerror at /home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/install/deps.js:470:5
npm ERR! typeerror at /home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:35
npm ERR! typeerror at Array.forEach (<anonymous>)
npm ERR! typeerror at /home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:11
npm ERR! typeerror at Array.forEach (<anonymous>)
npm ERR! typeerror at asyncMap (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/async-map.js:51:8)
npm ERR! typeerror at loadDeps (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/install/deps.js:462:3)
npm ERR! typeerror at Array.<anonymous> (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
npm ERR! typeerror at LOOP (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
npm ERR! typeerror at chain (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/chain.js:20:5)
npm ERR! typeerror at /home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/install/deps.js:366:5
npm ERR! typeerror at cb (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
npm ERR! typeerror at /home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/install/deps.js:512:5
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror <https://github.com/npm/npm/issues>
npm ERR! A complete log of this run can be found in:
npm ERR! /home/john/.npm/_logs/2018-04-18T12_03_47_055Z-debug.log
16.04 software-installation npm websocket
add a comment |Â
up vote
0
down vote
favorite
When attempting to install ws
(websocket library) to a project, get the following errors:
npm install -i ws
npm ERR! code EINVALIDTYPE
npm ERR! typeerror Error: Argument #2: Expected string or string but got null
npm ERR! typeerror at fetchPackageMetadata (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/fetch-package-metadata.js:36:3)
npm ERR! typeerror at limited (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/call-limit/call-limit.js:29:10)
npm ERR! typeerror at addDependency (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/install/deps.js:537:5)
npm ERR! typeerror at /home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/install/deps.js:470:5
npm ERR! typeerror at /home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:35
npm ERR! typeerror at Array.forEach (<anonymous>)
npm ERR! typeerror at /home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:11
npm ERR! typeerror at Array.forEach (<anonymous>)
npm ERR! typeerror at asyncMap (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/async-map.js:51:8)
npm ERR! typeerror at loadDeps (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/install/deps.js:462:3)
npm ERR! typeerror at Array.<anonymous> (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
npm ERR! typeerror at LOOP (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
npm ERR! typeerror at chain (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/chain.js:20:5)
npm ERR! typeerror at /home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/install/deps.js:366:5
npm ERR! typeerror at cb (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
npm ERR! typeerror at /home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/install/deps.js:512:5
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror <https://github.com/npm/npm/issues>
npm ERR! A complete log of this run can be found in:
npm ERR! /home/john/.npm/_logs/2018-04-18T12_03_47_055Z-debug.log
16.04 software-installation npm websocket
Have you triednpm install --save ws
? What does your-i
option stand for ?
â ponsfrilus
Apr 18 at 12:21
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
When attempting to install ws
(websocket library) to a project, get the following errors:
npm install -i ws
npm ERR! code EINVALIDTYPE
npm ERR! typeerror Error: Argument #2: Expected string or string but got null
npm ERR! typeerror at fetchPackageMetadata (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/fetch-package-metadata.js:36:3)
npm ERR! typeerror at limited (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/call-limit/call-limit.js:29:10)
npm ERR! typeerror at addDependency (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/install/deps.js:537:5)
npm ERR! typeerror at /home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/install/deps.js:470:5
npm ERR! typeerror at /home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:35
npm ERR! typeerror at Array.forEach (<anonymous>)
npm ERR! typeerror at /home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:11
npm ERR! typeerror at Array.forEach (<anonymous>)
npm ERR! typeerror at asyncMap (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/async-map.js:51:8)
npm ERR! typeerror at loadDeps (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/install/deps.js:462:3)
npm ERR! typeerror at Array.<anonymous> (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
npm ERR! typeerror at LOOP (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
npm ERR! typeerror at chain (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/chain.js:20:5)
npm ERR! typeerror at /home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/install/deps.js:366:5
npm ERR! typeerror at cb (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
npm ERR! typeerror at /home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/install/deps.js:512:5
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror <https://github.com/npm/npm/issues>
npm ERR! A complete log of this run can be found in:
npm ERR! /home/john/.npm/_logs/2018-04-18T12_03_47_055Z-debug.log
16.04 software-installation npm websocket
When attempting to install ws
(websocket library) to a project, get the following errors:
npm install -i ws
npm ERR! code EINVALIDTYPE
npm ERR! typeerror Error: Argument #2: Expected string or string but got null
npm ERR! typeerror at fetchPackageMetadata (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/fetch-package-metadata.js:36:3)
npm ERR! typeerror at limited (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/call-limit/call-limit.js:29:10)
npm ERR! typeerror at addDependency (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/install/deps.js:537:5)
npm ERR! typeerror at /home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/install/deps.js:470:5
npm ERR! typeerror at /home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:35
npm ERR! typeerror at Array.forEach (<anonymous>)
npm ERR! typeerror at /home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:11
npm ERR! typeerror at Array.forEach (<anonymous>)
npm ERR! typeerror at asyncMap (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/async-map.js:51:8)
npm ERR! typeerror at loadDeps (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/install/deps.js:462:3)
npm ERR! typeerror at Array.<anonymous> (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
npm ERR! typeerror at LOOP (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
npm ERR! typeerror at chain (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/chain.js:20:5)
npm ERR! typeerror at /home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/install/deps.js:366:5
npm ERR! typeerror at cb (/home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
npm ERR! typeerror at /home/john/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/install/deps.js:512:5
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror <https://github.com/npm/npm/issues>
npm ERR! A complete log of this run can be found in:
npm ERR! /home/john/.npm/_logs/2018-04-18T12_03_47_055Z-debug.log
16.04 software-installation npm websocket
16.04 software-installation npm websocket
edited Apr 18 at 13:04
ponsfrilus
503213
503213
asked Apr 18 at 12:11
John R M
1
1
Have you triednpm install --save ws
? What does your-i
option stand for ?
â ponsfrilus
Apr 18 at 12:21
add a comment |Â
Have you triednpm install --save ws
? What does your-i
option stand for ?
â ponsfrilus
Apr 18 at 12:21
Have you tried
npm install --save ws
? What does your -i
option stand for ?â ponsfrilus
Apr 18 at 12:21
Have you tried
npm install --save ws
? What does your -i
option stand for ?â ponsfrilus
Apr 18 at 12:21
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Â
draft saved
draft discarded
Â
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1026092%2fubuntu-16-04-4-lts-cant-install-node-js-ws%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Have you tried
npm install --save ws
? What does your-i
option stand for ?â ponsfrilus
Apr 18 at 12:21