NPM: ENOENT: no such file or directory, rename

后端 未结 13 2205
耶瑟儿~
耶瑟儿~ 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条回答
  •  梦毁少年i
    2021-02-05 08:53

    The second line may give a hint on what's happening:

    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, rename 'C:\Users\MiguelFrias\Desktop\Therabytes\node_modules\.staging\fsevents-e80c4ef4\node_modules\are-we-there-yet' -> 'C:\Users\MiguelFrias\Desktop\Therabytes\node_modules\.staging\are-we-there-yet-5db4c798'
    

    It looks like npm doesn't have enough permission on the folder you're trying to use.

    You can try:

    • Delete the npm_modules again.
    • Open whatever editor/terminal you're using to npm install with admin permission.

提交回复
热议问题