简体   繁体   中英

$ npm install eslint -g = -bash: $: command not found

I am trying to globally install eslint on my mac to use in vs code and it is returning the command not found. does anybody have any idea on how to fix this?

What specifically is not "found"? Is it NPM? If so, check your PATH variable.

Since you are using a Mac, it should be here:

/usr/local/bin/npm

Also, this is a very generic and common question, please do some more research before posting here.

Edit: As per my comment below.

Are you passing $: at the start of that command? In most documentation, this refers to the shell command prompt and should not be included in the command.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM