Comments (5)
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.
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.
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.
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.
Same issues for me, and I want to use the server remotely.
from jsonplaceholder.
Related Issues (20)
- Error 520 from Cloudflare on a simple request on users HOT 8
- No Such App browsing to the official homepage HOT 10
- jsonplaceholder_typicode_com is down. Shows, "There's nothing here, yet." HOT 2
- Jsonplaceholder website is down HOT 2
- how to define api header
- Custom Status Code
- Query/filter by multiple ids HOT 1
- Get the latest posts by user id HOT 1
- Similar Issue to earlier this month, the CORS policy does not return a simple get request via axios api
- Getting 503 errors and Heroku error page HOT 1
- Query Params in POST request
- json server using _embed returns an empty array when accessing children
- userId is Int when GET, but String when get result after POST
- Any way to simulate an error? HOT 1
- cloudflare is not allowing to access via rest assured HOT 8
- Unable to fetch a newly created user
- Can you simulate a delay? HOT 6
- Feature to query fields based on API request
- Alternating 503 Errors and 201 Success When Uploading Images
- Dark theme for our eye health
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsonplaceholder.