Open emilh91 opened 1 year ago
I discovered this issue when I was migrating some code from Node 14 (and npm 6) to Node 16 (and npm 8).
I checked to see if it was fixed in Node 18 (and npm 9), but the issue is still present in the latest npm it seems.
I have since moved to simply using --file
(instead of --script
and after trying --scr
) and that seems to work for now.
But I wanted to flag this in case it was not intentional, since I did not see this documented.
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
The above output can also be seen when using
--scri
,--scrip
, and--script
too.Expected Behavior
I would expect the above output, but with
scr
|scri
|scrip
|script
in lieu ofscripty
.Steps To Reproduce
On npm 8 (and 9)...
With the following
package.json
...Running any of the following:
npm start --scr=foo
npm start --scri=foo
npm start --scrip=foo
npm start --script=foo
... Yields the above error
Environment
9.5.1
18.16.1
macos Monterey 12.6.6
MacBook Pro (16-inch, 2021)