cd React/json-server
$ npm i json-server
+ json-server@0.16.1
added 229 packages from 124 contributors and audited 229 packages in 19.279s
$ json-server --watch db.json
bash: json-server: command not found
The way you call it, you need to install it as a global command:
sudo npm i -g json-server
then try running it.
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.