You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps to reproduce:
Installed json-graphql-server locally via npm i json-graphql-server -D and populated my db.cjs flie and then tried to run with npx json-graphql-server db.cjs and got the errors above.
Looks like the filename is ./bin/json-graphql-server.cjs.
But I think the bin command in package.json still points to ./bin/json-graphql-server.js (and not .cjs)
Workaround is to try and run the json-graphql-server directly from ./node_modules/json-graphql-server/bin/json-graphql-server.cjs and not from ./node_modules/.bin/json-graphql-server` alias.
./node_modules/json-graphql-server/bin/json-graphql-server.cjs db.cjs
GraphQL server running with your data at http://localhost:3000/
Other information:
Environment
Last version that did not exhibit the issue (if applicable):
Browser:
The text was updated successfully, but these errors were encountered:
What you were expecting:
npm is unable to find the
json-graphql-server
commandWhat happened instead:
Steps to reproduce:
Installed json-graphql-server locally via npm i json-graphql-server -D and populated my db.cjs flie and then tried to run with npx json-graphql-server db.cjs and got the errors above.
Looks like the filename is
./bin/json-graphql-server.cjs
.But I think the
bin
command in package.json still points to./bin/json-graphql-server.js
(and not .cjs)json-graphql-server/package.json
Lines 73 to 75 in cdeb68d
Related code:
Workaround is to try and run the json-graphql-server directly from ./node_modules/json-graphql-server/bin/json-graphql-server.cjs and not from ./node_modules/.bin/json-graphql-server` alias.
Other information:
Environment
The text was updated successfully, but these errors were encountered: