-
Notifications
You must be signed in to change notification settings - Fork 12k
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
ng update on windows fails when cli version wants to preinstall | loader.js | Cannot find module #18891
Comments
Related to #17870 |
Hello @alan-agius4 |
Go for it @inidaname. |
Hello @alan-agius4 Thank you, could you point me to a guide of what is expected, I see you suggested on #17870 to implement path escape could you elaborate on that. Thank you |
@alan-agius4 |
Hi @inidaname, we use
As mentioned in the issue linked, I think wrapped the
|
In the project folder in \node_modules@angular\cli\utilities\install-package.js, I replaced |
@Sarah-JJ, please update the global CLI to the latest version as the mentioned issue has already been resolved in 12.0.3.
|
@Sarah-JJ this solution worked for me. @alan-agius4 : that solution didnt work for me. i was already using version 12.0.3 but I did also install it globally. it didnt change anything, the error was still there. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: 6, 7, partially in 8 (depend on the cli version)Description
A user directory on windows is 'C:\Users\Firstname Lastname...' - what mean it includes a whitespace between the first and last name. When the given project has not the latest cli version installed, a temporary install happen of the lastes cli version to use it for ng update. Then the following error happen (I holde it generic by using "Firstname Lastname":
🔬 Minimal Reproduction
Have a windows system where the user name uses a whitespace (like "Firstname Lastname" or "John Doe") and an Angular project that has not the latest cli installed. Run
ng update
.🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
To use
ng update
it is possible to update the local pacakge to latest version by increasing it in package.json by hand and do annpm install
. Then with the lastest versionng update
always works. It is the problem with the mechanism to preinstall the lastes version onng update
command.I also tried to route the global node_modules to a different folder. That works for all global packages, but not for that command. It will always use the users directory.
The text was updated successfully, but these errors were encountered: