Home>
I installed
firebase-tool
withnuxtjs and ranfirebase login
, but I get the following error.
-bash: firebase: command not found
When I examine it, it seems that the cause is that the path does not pass, but if I check withnpm bin -g
,/Users/macbook/.nodebrew/node/v11 The path passes without problem with .14.0/bin
.
What can't use the firebase command?
npm get prefix
also returns.
/Users/macbook/.nodebrew/node/v11.14.0
.bash_profile
if [-f ~/.bashrc];then
~/.bashrc
fi
export PATH = $PATH: $HOME/.nodebrew/current/bin
.bashrc
export PATH = $PATH: /Users/macbookpro/.nodebrew/node/v11.14.0/bin
Version
node v11.14.0
nodebrew 1.0.1
npm 6.7.0
Reference
https://qiita.com/ebichan_88/items/e3e30461ad4ddd9368f5
https://qiita.com/klab2/items/8b7389293f7896f8d4b1
-
Answer # 1
Related articles
- nodejs terminal? command? i don't know how to hit
- Java-based ssh command login host execution shell command process analysis
- Nodejs method to keep login using cookies
- Nodejs releases its own npm package and makes it into a command line tool instance to explain
- How to change Linux user password in Nodejs command line/batch
- Nodejs npm command method to run nodejs script
- Teach you how to write cli command line with nodejs
- Detailed Nodejs command to upload a local file to the server
- NodeJS checks if Chrome is installed in the command line and opens the specified URL
- nodejs implement user login routing function
- Nodejs command line tutorial graphic explanation
- Graphical NodeJS to implement login registration function
- nodejs - push notifications in firebase cloud messaging and cloudfunctions not working
- javascript - firebase init shows zsh: command not found: firabase
- command prompt - i can't "firebase deploy"
- javascript - firebase list command becomes is not a firebase command
- nodejs - i can't install the package with npm install --save firebase
- command - sakura internet shell login function
- nodejs - error with npm command
- about login status of firebase anonymous authentication
Related questions
- javascript - syntax error 800a03ea is displayed when opening indexjc in cloud function
- json - require () is not a function in firebase stripe sample [firestripe]
- linux : How to install gulp on Ubuntu 20.04
- javascript - mac: error when running npm run dev
- nodejs - error with npm command
- nodejs - i want to keep the file set by dockerfile in the shared directory with the host with docker
- html5 - error when running npm run tslint
- nodejs - i want to prevent it from being saved in other places when npm install
- nodejs - error when trying to install passport or bleno with npm
- nodejs - if you use tsc -watch tsconfigjson command but there is a file, it will get angry and you cannot execute it
Looks you don't install package globally
Do you install with -g?
It should work if you run the command with
npx
prefixed in the installed folder