npm config edit user or group - not working #3441
Labels
platform:windows
is Windows-specific
Priority 2
secondary priority issue
Release 7.x
work is associated with a specific npm 7 release
Is there an existing issue for this?
Current Behavior
when executing npm package executable on a policy restricted PC the user/group config does not take into effect,
i am on an enterprise windows PC, after installing npm-gui (also happens on nx.dev StoryBoard),
when i run a command that tries to launch a server (listen to a port), it execute it with the DefaultAccount, the output say: [as default]
the PC has a policy that one user cannot execute applications as another user,
so i tried setting the user (UID) or group (GID) so npm will use that user to execute the commands, but it does not effect the process
actual received output:
Expected Behavior
setup UID to use when executing npm package executables
as stated at: https://docs.npmjs.com/cli/v6/using-npm/config#user
set:
npm config set user MYUsername
call:
npm-gui
expect server to launch properly and to see npm-gui UI
as shown here: https://www.npmjs.com/package/npm-gui
Steps To Reproduce
npm i -g npm-gui
npm config set user=MyUsername
npm-gui
in step 3 i also tried:
npm config set group=MY_GID
as stated here: https://docs.npmjs.com/cli/v6/using-npm/config#groupEnvironment
The text was updated successfully, but these errors were encountered: