In Windows, currently npm run start doesn't work. It produces the next error log:
PS D:\Documents\pixijs.com> npm run start
> pixi-docusaurus@0.0.0 prestart
> npm run write-example-docs
> pixi-docusaurus@0.0.0 write-example-docs
> ./scripts/write-example-docs.js
'.' is not recognized as an internal or external command,
operable program or batch file.
This refers to one of our package.json scripts. "write-example-docs": " ./scripts/write-example-docs.js",
The solution
This is fixed by adding "node" to our script so it writes "write-example-docs": "node ./scripts/write-example-docs.js", After this, now npm run start works correctly and the site loads correctly locally.
This needs to be tested on linux/macos to make sure this addition doesn't break setups on other OS.
The issue
In Windows, currently
npm run start
doesn't work. It produces the next error log:This refers to one of our package.json scripts.
"write-example-docs": " ./scripts/write-example-docs.js",
The solution
This is fixed by adding "node" to our script so it writes
"write-example-docs": "node ./scripts/write-example-docs.js",
After this, nownpm run start
works correctly and the site loads correctly locally.This needs to be tested on linux/macos to make sure this addition doesn't break setups on other OS.