how-to-api icon indicating copy to clipboard operation
how-to-api copied to clipboard

package.json dev script only works on *nix systems

Open benhadad opened this issue 5 years ago • 0 comments

Users who are running on a windows system with CMD as the shell will not have the environmental variables set correctly.

possible solutions is to supply a script for windows such as "windev": "set API_PORT=4557 & set API_MAX=77 & nodemon server.js"

or include https://www.npmjs.com/package/cross-env

This also does not address if someone is using powershell as the shell for NPM/Node.

benhadad avatar Jun 12 '20 23:06 benhadad