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
Have installed a local package into optional, while also have an alternative path in the "dependencies" section of package.json
Running the install command with no flag: npm install node node_modules/node-red/red.js
Results in the "lower-case2" function showing in node-red. Also if I remove "lower-case": "file:./lower-case2" from "optionalDependencies" and re-run the above commands the result in similar to the previous behavior except "lower-case2" becomes "lower-case"
Now when I run install with the flag omit for optional dependencies: npm install --omit=optional node node_modules/node-red/red.js
The result is that neither "lower-case" or "lower-case2" shows under the functions panel.
Expected Behavior
I expect that when I omit optional dependencies, that the package under the same name but in the "dependencies" section of package.json to install.
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Have installed a local package into optional, while also have an alternative path in the "dependencies" section of package.json
Running the install command with no flag:
npm install node node_modules/node-red/red.js
Results in the "lower-case2" function showing in node-red. Also if I remove "lower-case": "file:./lower-case2" from "optionalDependencies" and re-run the above commands the result in similar to the previous behavior except "lower-case2" becomes "lower-case"
Now when I run install with the flag omit for optional dependencies:
npm install --omit=optional node node_modules/node-red/red.js
The result is that neither "lower-case" or "lower-case2" shows under the functions panel.
Expected Behavior
I expect that when I omit optional dependencies, that the package under the same name but in the "dependencies" section of package.json to install.
Commands:
npm install --omit=optional node node_modules/node-red/red.js
Expect:
"lower-case" to show in the functions panel.
Steps To Reproduce
Environment
The text was updated successfully, but these errors were encountered: