unable to install firebase tools cli using windows

2019-05-11 12:06发布

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

2条回答
时光不老,我们不散
2楼-- · 2019-05-11 12:37

Latest version seems to have a problem.

Try installing one previous version:

npm i -g firebase-tools@v3.17.2

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.

查看更多
做自己的国王
3楼-- · 2019-05-11 12:58

Actually you can try installing the npm i -g firebase-tools@v3.16.0 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

查看更多
登录 后发表回答