json-server icon indicating copy to clipboard operation
json-server copied to clipboard

Command not found

Open Pradeepkn opened this issue 10 years ago • 7 comments

I tried to run command json-server db.json in my iMac. But getting json-server command not found. It works in some other machine. Please help me out on how to resolve it.

Pradeepkn avatar Sep 27 '16 14:09 Pradeepkn

May be related to https://github.com/typicode/json-server/issues/370

typicode avatar Oct 05 '16 11:10 typicode

@Pradeepkn Did you try sudo npm install -g json-server. executing this as sudo solved issue for me (ubuntu 14.04, node installed without nvm)

gaelmotte avatar Oct 20 '16 10:10 gaelmotte

This fixed my problem, thanks!

michael-mahoney avatar Apr 16 '17 20:04 michael-mahoney

I tried to install json server in window 10 But I am getting this message. Installation command which i am using $ npm install -g json-server

Error Message : '$' is not recognized as an internal or external command, operable program or batch file.

munimathur avatar Jul 12 '18 15:07 munimathur

@munimathur, you don't need to type the $. ;)

RaquelPlaza avatar Dec 13 '18 10:12 RaquelPlaza

Helps for me (may be problem with global path on iMac) export PATH=$PATH:$HOME/.npm-global/bin

krolovolk avatar Apr 16 '20 18:04 krolovolk

Helps for me (may be problem with global path on iMac) export PATH=$PATH:$HOME/.npm-global/bin

This fixed my problem, thanks!

VikMelanchenko avatar Jan 26 '21 21:01 VikMelanchenko