npm error on every command: EEXIST: file already exists, mkdir 'c:\users\user\appdata\Roaming\npm'

后端 未结 8 1777
孤街浪徒
孤街浪徒 2021-01-02 13:10

I\'m just new to node and npm and this is frustrating.

Well it\'s almost all said in the title. On a Windows 10 x64 using a NON elevated prompt, all npm commands sho

相关标签:
8条回答
  • 2021-01-02 13:42

    For me, just adding --force solved it.

    0 讨论(0)
  • 2021-01-02 13:44

    Go to the folder where you have installed Cypress. For example D:\cypressautomation --> then go to "node_modules" --> and then ".bin" folder. Here in this folder, if there is any file named "cypress", then just delete it (before deleting I think cypress needs to be closed). Reopen the cypress. This worked perfectly fine for me.

    0 讨论(0)
提交回复
热议问题