[英]Unable to run json server
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.然后尝试运行它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.