angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

ng update conflict with pc user folder name

Open IR4N0nY opened this issue 6 years ago • 7 comments

🐞 Bug report

Command (mark with an x)

  • [ ] new
  • [ ] build
  • [ ] serve
  • [ ] test
  • [ ] e2e
  • [ ] generate
  • [ ] add
  • [x] update
  • [ ] lint
  • [ ] xi18n
  • [ ] run
  • [ ] config
  • [ ] help
  • [ ] version
  • [ ] doc

Description

unfortunately my pc user name is: s&a and because npm and node have problem with this user name i moved my npm and npm-cache folder to c:\npmGlobal and install node on my D drive and save path to my system variable and edit npmrpc file but when i try to use command ng update i got this error:

PS D:\Projects\Angular\MofidBot\MofidBot\ClientApp> ng update
Your global Angular CLI version (9.1.7) is greater than your local
version (8.3.14). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".
The installed Angular CLI version is older than the latest published version.
Installing a temporary version to perform the update.
Installing packages for tooling via npm.
Error: EPERM: operation not permitted, mkdir 'C:\Users\s'
The system cannot find the path specified.
An unhandled exception occurred: Package install failed, see above.
See "C:\Users\s&a\AppData\Local\Temp\ng-lOKcYV\angular-errors.log" for further details.

🌍 Your Environment

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 8.3.14
Node: 14.3.0
OS: win32 x64
Angular: 8.2.12
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router

Package                                    Version
--------------------------------------------------------------------
@angular-devkit/architect                  0.803.24
@angular-devkit/build-angular              0.803.24
@angular-devkit/build-optimizer            0.803.24
@angular-devkit/build-webpack              0.803.24
@angular-devkit/core                       8.3.24
@angular-devkit/schematics                 8.3.14
@angular/cli                               8.3.14
@ngtools/webpack                           8.3.24
@nguniversal/module-map-ngfactory-loader   8.1.1
@schematics/angular                        8.3.14
@schematics/update                         0.803.14
rxjs                                       6.5.4
typescript                                 3.5.3
webpack                                    4.39.2

IR4N0nY avatar Jun 05 '20 20:06 IR4N0nY

Hi @alan-agius4, could you point me in the right direction where/ what the problem is. I can have a look at this issue.

Jefiozie avatar Sep 28 '20 07:09 Jefiozie

Likely it's caused here https://github.com/angular/angular-cli/blob/1873f2d28f8f508c1f360e07b03b60ff20c20d25/packages/angular/cli/tasks/install-package.ts#L146-L148 by unescaped paths.

alan-agius4 avatar Sep 28 '20 09:09 alan-agius4

Just an update, I've not have found the time to research this.

Jefiozie avatar Jan 14 '21 10:01 Jefiozie

is this problem happens with just update or happens with other commands?

abadi003 avatar Feb 20 '21 16:02 abadi003

update only

IR4N0nY avatar Feb 24 '21 14:02 IR4N0nY

I think node/issue#7367 should be helpful to fix this issue.

tingwei628 avatar May 20 '21 03:05 tingwei628

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.