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
That return false returned when it encounter the non-exist-file entry after --userconfig, causing it not able to test the RegExp against install.
My current workaround is to change the command to --userconfig=non-exist-file and modify the above code to use npm_config_argv.original instead of npm_config_argv.cooked so that both side of = will be in the same entry of the array. I'm not sure whether this will cause other problems tho...
The text was updated successfully, but these errors were encountered:
When using commands like
npm --userconfig file install
instead of plainnpm install
,not-in-install
always returns true.Steps to reproduce are as follows, in an empty folder:
Tested on an ubuntu 14.04 box:
and on Windows 7 x64 (with cygwin):
The problem may be in this part of
index.js
:That
return false
returned when it encounter thenon-exist-file
entry after--userconfig
, causing it not able to test the RegExp againstinstall
.My current workaround is to change the command to
--userconfig=non-exist-file
and modify the above code to usenpm_config_argv.original
instead ofnpm_config_argv.cooked
so that both side of=
will be in the same entry of the array. I'm not sure whether this will cause other problems tho...The text was updated successfully, but these errors were encountered: