In package.json file:
"scripts": {
"dev": "./scripts/dev_parallel.sh",
}
I am trying to run a shell script by typing in:
npm run dev
But I am getting following error:-
$ npm run dev
./scripts/dev_parallel.sh
'.' is not recognized as an internal or external command, operable program or batch file.
change '.' with '%INIT_CWD%' on windows.
Before:
"scripts": {
"build": "./node_modules/.bin/drupal-gutenberg-translations && ./node_modules/.bin/drupal-js-build --css"
},
After:
"scripts": {
"build": "%INIT_CWD%/node_modules/.bin/drupal-gutenberg-translations && %INIT_CWD%/node_modules/.bin/drupal-js-build --css"
},
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With