You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ..."scripts": {"watch": "watch 'npm run start' src"},// ...
With the following error:
> "watch 'npm run start' src
> Watching 'npm
> Watching run
> Watching start'
C:\Projects\simple\node_modules\watch\main.js:73
if (err) throw err;
^
Error: ENOENT: no such file or directory, stat 'C:\Projects\simple\'npm'
at Error (native)
But this does:
// ..."scripts": {"watch": "watch \"npm run start\" src"},// ...
Being used to *nix this was a bit of a surprise. Don't know if this is expected behaviour on windows, or a bug, but just thought I'd report it.
The text was updated successfully, but these errors were encountered:
This is indeed a windows limitation. Your escaped double quote solution is the correct approach.
EDIT
To clarify, I mean to say it is entirely unrelated to watch. On Windows when using quotes in scripts you need to use double quotes due to how Windows handles them on the command line.
When using the CLI from
package.json
this fails:With the following error:
But this does:
Being used to *nix this was a bit of a surprise. Don't know if this is expected behaviour on windows, or a bug, but just thought I'd report it.
The text was updated successfully, but these errors were encountered: