I have a fault in npm, the situation is as follows:
I have installed NodeJS to work on a project in Angular , I installed LTS 6.10.3 and nmp 3.10.10 .
I executed the following:
node -v npm -v
... and when I give it npm -v
I get an error before showing me the version that says:
npm -v
CALL "C:\Program Files\nodejs\node,exe" "C;\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" prefix -g
is not recognized as an internal or external command, program or batch file executable. 3.10.10
I have uninstalled Node many times, cleaning the folders in % user% / appdata / npm and npm-cache , I have installed it as administrator, although the user with whom I work is an administrator, and the error remains.
At first I thought it was just a non-fatal error because at the end it shows the version but every time I try to install a package with -g
, for example:
npm install -g @angular/cli
... at the end it takes error in red and does not finish installing.
The same thing happens with all the packages.
I attach the last part of the record with the errors it generates:
85429 verbose stack at _combinedTickCallback (internal / process / next_tick.js: 80: 11)
85429 verbose stack at process._tickCallback (internal / process / next_tick.js: 104: 9)
85430 verbose pkgid [email protected]
85431 verbose cwd D: \ npm
85432 error Windows_NT 6.3.9600
85433 argv error "C: \ Program Files \ nodejs \ node.exe" "C: \ Program Files \ nodejs \ node_modules \ npm \ bin \ npm-cli.js" "install" "-g" "angle-cli" < br> 85434 error node v6.10.3
85435 error npm v3.10.10
85436 error code ELIFECYCLE
85437 error [email protected] install: 'node scripts / install.js'
85437 error Exit status -4058
85438 error Failed at the [email protected] install script 'node scripts / install.js'.
85438 error Make sure you have the latest version of node.js and npm installed.
85438 error If you do, this is most likely to be a problem with the node-sass package,
85438 error not with npm itself.
85438 error Tell the author that this fails on your system:
85438 error node scripts / install.js
85438 error You can get information on how to open an issue for this project with:
85438 error npm bugs node-sass
85438 error Or if that is not available, you can get their info via:
85438 error npm owner ls node-sass
85438 error There is likely additional logging output above.
85439 verbose exit [1, true]
I ran npm install
as an administrator and it does not work either.