JSON-Server 安装使用 原创

JSON-Server 安装使用

  1. linux 卸载已经安装的npm/node
    sudo apt-get remove npm node
    apt-get安装的的npm/node 有问题

  2. 下载linux/windows对应版本的node
    linux解压后,把node-v4.0.0-linux-x64/bin目录加到环境变量
    windows会自动把npm加到环境变量
    输入npm -vnode -v验证是否安装成功

  3. 安装json-server
    npm install -g json-server

  4. git clone https://github.com/typicode/json-server
    依据 readme.md,创建db.json
    启动服务 json-server --watch db.json

posted @   清霜辰  阅读(0)  评论(0编辑  收藏  举报  
相关博文:
阅读排行:
· 【.NET】调用本地 Deepseek 模型
· CSnakes vs Python.NET:高效嵌入与灵活互通的跨语言方案对比
· DeepSeek “源神”启动!「GitHub 热点速览」
· 我与微信审核的“相爱相杀”看个人小程序副业
· Plotly.NET 一个为 .NET 打造的强大开源交互式图表库
点击右上角即可分享
微信分享提示