So I'm trying to build the javascriptair/site. Inside the package.json
There is an npm script that points at a javascript "command" package-scripts
. That repository is found https://github.com/kentcdodds/p-s. In Windows it errors out with a JScript error.
Script: C:[path_to_code]\package-scripts.js
Line: 2
Char: 1
Error: Syntax error
Code: 800A03EA
Source: Microsoft JScript compilation error
So in the package.json
, what it has is this
"scripts": {
"start": "package-scripts"
}
If I change the package.json
to the following:
"scripts": {
"start": "package-scripts.cmd"
}
I can get the server to start. So my question is, why is this happening, and how can we change the package.json
to make it cross platform with the same command.