Giter Site home page Giter Site logo

Comments (5)

typicode avatar typicode commented on September 7, 2024

Hi @Brian1111,

Thank you for reporting :) seems like the command has been removed after a refactoring.

As a workaround, If you want to use JSONPlaceholder locally, please install json-server and load JSONPlaceholder data:

npm install -g json-server
json-server http://jsonplaceholder.typicode.com/db

from jsonplaceholder.

Brian1111 avatar Brian1111 commented on September 7, 2024

Hi @typicode,

Thank you for the information. jsonplaceholder is installed in the following directory: "C:\Railsinstaller\Git\usr\local>" I could run it on Windows PowerShell Terminal by typing the following command: ".\jsonplaceholder"

However, I cannot run it on Git Bash Terminal. I reinstalled json-server, and typed the following as you stated: "json-server http://jsonplaceholder.typicode.com/db". Still I am getting the same error message: "bash: json-server: command not found"

from jsonplaceholder.

typicode avatar typicode commented on September 7, 2024

That's kind of weird, I'm not using PowerShell so I don't know it very well, but it may be related to your Node installation/PATH environment variable. Did you manage to install other CLIs globally using Node?

from jsonplaceholder.

Brian1111 avatar Brian1111 commented on September 7, 2024

I fixed the problem. I went to the directory "C:\Users\Username" and opened the file ".npmrc"

Then I changed the prefix from "prefix=C:/RailsInstaller/Git/usr/local" to: "prefix=C:\Users\Username\AppData\Roaming\npm"

from jsonplaceholder.

mogocat avatar mogocat commented on September 7, 2024

Same issues for me, and I want to use the server remotely.

from jsonplaceholder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.