NPM: ENOENT: no such file or directory, rename

后端 未结 13 2195
耶瑟儿~
耶瑟儿~ 2021-02-05 08:38

I was using gulp on the project, then i decide to deleted all the dev dependencies to switch to webpack, but every time i try to install using npm is get this error:

<         


        
13条回答
  •  孤城傲影
    2021-02-05 09:04

    For me, package-lock.json was not created and script was failing before itself.

    This fixed my issue:

    - deleted my node_modules.
    - npm cache clean 
    - opened cmd as administrator at the repository folder
    - logged-in to the https://registry.npmjs.org/ using username and passoward as few of my components needed authentication to install.
    - npm i
    
    

提交回复
热议问题