Ubuntu 16.04.4 LTS can't install node.js ws

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








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









share|improve this question























  • Have you tried npm install --save ws ? What does your -i option stand for ?
    – ponsfrilus
    Apr 18 at 12:21














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









share|improve this question























  • Have you tried npm install --save ws ? What does your -i option stand for ?
    – ponsfrilus
    Apr 18 at 12:21












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









share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 18 at 13:04









ponsfrilus

503213




503213










asked Apr 18 at 12:11









John R M

1




1











  • 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















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















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491