windows - npm hangs on any command -


i installed last version of node.js (12.2 x64 windows) after run cmd administrator , try call npm command (except npm -v) cmd window hanging. after ctrl+c returns terminate batch job (y/n)?

enter image description here

i trying left cmd several hours didn't give results. strange because node.exe process consuming cpu , memory quite hard.

i trying reinstall node.js several times without success. can't debug information.

i faced such issue on vm using connecting via rdp. same version installed on laptop works ok. on vm had kaspersky antivirus, after switching off got same result.

did face such issue? there way more information problem? please recommend me way resolve?

i've resolved issue. according suggestion our local read me file

node.js (with npm) note: on windows server machines, instead of node modules been installed @ user %appdata% path, better install @ global path e.g c:\npm. acheived npm command: $ npm config set prefix 'c:\npm' not required on individual developer's machine.

i've executed npm config set prefix 'c:\npm'.

as result added prefix="'c:\\npm'" .npmrc file

this make node.js crazy. takes me hour debug these js scripts npm.js code.js etc... find calls mkdirp 'c:\npm'\etc , loop process forever.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -