facebook

What should I do to run NPM update without error ?

  1. CodeMix & Angular IDE
  2.  > 
  3. Getting Help
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #642887 Reply

    Frédéric
    Participant

    Hi,

    When starting CodeMix, I can read a message telling that a new minor version of NPM is available.
    I just have to execute : npm install -g npm to update

    But when I do this, I’ve got the following error message :

    $ npm install -g npm

    npm ERR! path C:UsersLoveg.webclipsenodejs10.16.3npm.cmd
    npm ERR! code EEXIST
    npm ERR! Refusing to delete C:UsersLoveg.webclipsenodejs10.16.3npm.cmd: is
    outside C:UsersLoveg.webclipsenodejs10.16.3node_modulesnpm and not a lin
    k
    npm ERR! File exists: C:UsersLoveg.webclipsenodejs10.16.3npm.cmd
    npm ERR! Move it away, and try again.

    npm ERR! A complete log of this run can be found in:
    npm ERR! C:UsersLovegAppDataRoamingnpm-cache_logs2020-02-22T09_30_48_
    360Z-debug.log

    It seems the update doesn’t want to delete old files, maybe because they actually are used by the current running version of NPM.

    Is there a better way to update ?

    Thanx

    #643132 Reply

    support-swapna
    Moderator

    Frederic,

    Sorry that you are seeing this issue.

    Can you please check if any of the suggestions in the below threads discussing similar issue help?
    https://stackoverflow.com/questions/46541371/npm-err-refusing-to-delete-code-eexist
    https://github.com/coreybutler/nvm-windows/issues/13

    –Swapna
    Genuitec Support

    #643596 Reply

    support-swapna
    Moderator

    Frederic,

    Just checking – were you able to resolve the reported issue?

    –Swapna
    Genuitec Support

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: What should I do to run NPM update without error ?

You must be logged in to post in the forum log in