I was running an Electron project, and everything worked just fine. But now when I run any of the scripts in my package.json (including npm start), it just escapes a line an
If you are using an integrated terminal (such as the VsCode integrated terminal) try running your npm "run dev' command from your PowerShell (or cmd) terminal. This error arises as a result of your integrated terminal not recognizing your command (especially if you created your app with a git bash terminal).
Try this, and I hope it helps someone cause it always works for me. Cheers!!!
npm has a ignore-scripts
configuration key. It's expected value is a Boolean and it's set to false
by default.
Perhaps it has inadvertently been set to true
.
To get
/set
the ignore-scripts
configuration you can utilize the npm-config command:
Check its current setting by running:
npm config get ignore-scripts
If the aforementioned command returns true
then reset it to false
by running:
npm config set ignore-scripts false