Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to install firebase tools cli using windows 10

Hi i unable to install the firebase tools via commandline in the windows

im using this below command

npm install -g firebase-tools

after entering this command i m getting this below error

npm ERR! path C:\Users\data\AppData\Roaming\npm\node_modules\firebase-tools\node_modules

npm ERR! code ELOOP

npm ERR! errno -4067

npm ERR! syscall mkdir

npm ERR! ELOOP: too many symbolic links encountered, mkdir 'C:\Users\data\AppData\Roaming\npm\node_modules\firebase-tools\node_modules'

npm ERR! A complete log of this run can be found in:

npm ERR! C:\Users\data\AppData\Roaming\npm-cache_logs\2018-01-20T13_22_41_404Z-debug.log

like image 722
Shyam Nair Avatar asked Jan 20 '18 13:01

Shyam Nair


2 Answers

Latest version seems to have a problem.

Try installing one previous version:

npm i -g [email protected]

UPDATE:

Before doing so, it might be better to uninstall faulty one:

npm uninstall -g firebase-tools

also make sure you have windows-build-tools installed (though I have it on my machines, error you share doesn't really seem to be related to this)

npm --add-python-to-path='true' --debug install --global windows-build-tools

UPDATE 2

I've updated my Node & NPM versions and then to latest Firebase Tools.

Still getting WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 error, but since it's a warning, I've decided to give it a try. So far no problems.

UPDATE 3

windows-build-tools package got an update yesterday so I installed it with hope it solves problems installing latest version of firebase-tools. It did not, same errors occur.

like image 93
Bogac Avatar answered Nov 03 '22 00:11

Bogac


Actually you can try installing the npm i -g [email protected] version and try to install the npm install windows-build-tools**in your local folder and after that install **npm install node-gyp in your local folder and before doing all these try to disable your antivirus

like image 35
Madpop Avatar answered Nov 02 '22 22:11

Madpop