Skip to content

Problem executing "npm start" in Windows Environment (solved) #40

Description

@LucasAmorimSilva

I followed the instructions in the main page using git bash to initialize the json-diff and I got this error:

$ npm start
> online-json-diff@1.0.0 start C:\Users\silvalk\Desktop\online-json-diff
> ./node_modules/serve/bin/serve .

'.' is not recognized as an internal or external command,
operable program or batch file.

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"

So I changed the file package.json in the field start from ./node_modules/serve/bin/serve . to ./node_modules/serve/bin/serve and it worked.

May you change the instruction page to guide Windows users?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions