-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regression
: npmrc should be obeyed during nx migrate
#10513
Comments
regression
: npmrc should be obeyed during nx migrate
regression
: npmrc should be obeyed during nx migrateregression
: npmrc should be obeyed during nx migrate
Hi @AgentEnder
I am also developing inside a company network and this causes a lot of trouble because Nx is ignoring the defined proxy configurations and it's not usable for migrations/updates. In my company certain operations outside of the defined configurations/folders in the *.npmrc are completely blocked.
I saw there has been a release for Nx 14 but unless this is patched in Nx 13 I would have to do the whole migration manually for Angular 14 and Nx 14 which would be frustrating. Worst case we would have to abandon Nx completely as this generates more overhead then benefits as of now... I appreciate any idea on how to work around this - unfortunately I cannot move the project outside of the company network, that would have been a way to solve it temporarily. Thanks! Environment
|
So in the meantime I can give an update and provide a workaround that worked for me: I had to set both my environment variables for The default NPM Cache on Windows points to Hope that helps everyone that has that issue - maybe worth mentioning this in the Nx docs as a workaround until the issue could be fixed as probably a lot of people in the corporate world do not have full blown admin rights on their dev machines. |
Hi @AgentEnder Any rough timeline on when we can expect a fix to be shipped? |
Can you please give this a high priority? |
any news about this bug ? |
In my case i also pass by a company proxy so i'm denied to migrate with command lines, so i procceeded manually to migrate workspace from v13 to v14. I installed the Angular CLI version ( 14.8.6 ) globally and changed package.json files ( the global one, and nested ones for libs). And running Do not forgot to change the executor to => It is not the best solution but unblocked me. |
I've found that every time it fails, you can just run |
With the update to [email protected]+, it now won't even get the latest nx because of proxy failures. it tries to call (Only discovered after trying to upgrade from 15.7 -> 15.8) |
Interestingly enough though, running |
I've seen some reports recently that running via yarn overrides any configured registries because it sets an env variable, its possible this is what you are smashing against. If so, there's not really much we can do. |
That's what i'm afraid of. It may be because running yarn via child process isn't run as the correct user, or from a different path, and not inheriting the right yarn configs as a result. |
@AgentEnder in our case we are using npm not yarn, so it's not what's blocking us. Could you give us an update on the initial questions posted above regarding the changed .npmrc behaviour? |
I don't currently have an update, we didn't change the behavior in regards to .npmrc and are having a hard time troubleshooting this one. |
I think this may have been fixed in #16652 |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Looks like it was fixed before and resurrected again: #6781
Current Behavior
Calling
nx migrate 'my-package'
does not obey registry settings from .npmrc. This leads to things like trying to pull latest from npm, or yarn registry instead of the registry pointed to by the workspace.If an enterprise workspace was using a private registry, and had a custom nx plugin, they would not be able to use nx migrate for their internal migration scripts.
Expected Behavior
Registries and authorization headers in .npmrc should be obeyed by
nx migrate
Steps to Reproduce
nx migrate 'my-package'
Failure Logs
Environment
The text was updated successfully, but these errors were encountered: