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
When I directly execute the script by (in the above example: storybook):
node_modules/.bin/start-storybook -p 6006 -s public
It seems that with npm run, the base path where the command is ran, is used, and the working directory is not set to the C:\Development\lab\storybook\story-book\node_modules\.bin folder. Note: the folder does exist in the PATH! (see listing above).
Everything works.
Expected Behavior:
The same behavior of npm run compared with directly running the script from the .bin folder.
Steps To Reproduce:
A fresh install of node using NVM4W on a W10 machine.
Environment:
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19041
OS Platform: Windows
RID: win10-x64
npm v6 is no longer in active development; We will continue to push security releases to v6 at our team's discretion as-per our Support Policy.
If your bug is preproducible on v7, please re-file this issue using our new issue template.
If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo
Current Behavior:
With a fresh install of node and npm on a windows 10 machine using nvm, I have the following issue:
Whatever script I want to run using:
I get (listing from the debug log):
When I directly execute the script by (in the above example: storybook):
It seems that with npm run, the base path where the command is ran, is used, and the working directory is not set to the
C:\Development\lab\storybook\story-book\node_modules\.bin
folder. Note: the folder does exist in the PATH! (see listing above).Everything works.
Expected Behavior:
The same behavior of npm run compared with directly running the script from the .bin folder.
Steps To Reproduce:
A fresh install of node using NVM4W on a W10 machine.
Environment:
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19041
OS Platform: Windows
RID: win10-x64
using [email protected]
using [email protected]
nvm version: 1.1.7
The text was updated successfully, but these errors were encountered: