abhishek sachan
abhishek sachan

Reputation: 21

Erorr in installing npm install -g firebase-tools

npm ERR! code EEXIST
npm ERR! path C:\Users\user\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js
npm ERR! dest C:\Users\user\AppData\Roaming\npm\firebase
npm ERR! EEXIST: file already exists, cmd shim 'C:\Users\user\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js' -> 'C:\Users\user\AppData\Roaming\npm\firebase'
npm ERR! File exists: C:\Users\user\AppData\Roaming\npm\firebase
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\user\AppData\Roaming\npm-cache\_logs\2020-06-09T17_23_51_150Z-debug.log

Upvotes: 1

Views: 1738

Answers (2)

Osama Buzdar
Osama Buzdar

Reputation: 1222

You can download the standalone binary(open when done) download from here it will automatically install CLI here is the link

Upvotes: 0

user10314103
user10314103

Reputation:

to reinstall cleanly, run the following in order.

npm uninstall -g firebase-tools

npm cache clean --force

npm install -g firebase-tools

Upvotes: 1

Related Questions