Can't use mkdir in NPM script from Windows
This module possibly will solve your problem: https://www.npmjs.com/package/mkdirp
You can use npx plus mkdirp for a relatively lightweight, portable solution without global installs
Add this to package.json
:
"scripts": {
"create-dir": "npx mkdirp _site/assets",
}
And then use like this:
$ npm run create-dir
Npm is using the windows mkdir command, not the linux. Use
"setup": "mkdir .\\my-dir"
Use backslashes.
You can also install cygwin and run:
/cygwin64/bin/mkdir -p mydir