forge icon indicating copy to clipboard operation
forge copied to clipboard

EACCES: permission denied to run npm start

Open JoseCanulEI opened this issue 1 year ago • 0 comments

Pre-flight checklist

  • [X] I have read the contribution documentation for this project.
  • [X] I agree to follow the code of conduct that this project uses.
  • [X] I have searched the issue tracker for a bug that matches the one I want to file, without success.

Electron Forge version

7.2.0

Electron version

27.1.3

Operating system

Windows 11

Last known working Electron Forge version

No response

Expected behavior

When you run npm run start the project starts

Actual behavior

I have a Vue.js project with its own 'node_modules' directory. Within this directory, I installed electron-forge and ran the 'npm install' command in the path, which ended up being 'proyectovuejs/electron'. When attempting to run the electron project, I encounter an error stating 'EACCES: permission denied, lstat 'D:\projectvuejs\node_modules\vuePlugins''.

Interestingly, this plugin belongs to the root project and not the electron project. Why is it checking the plugin from the root project if it doesn't belong to the electron project? How can I resolve this error?

Steps to reproduce

✖ Preparing native dependencies › EACCES: permission denied, lstat 'D:\projectvuejs\node_modules\vuePlugins' ◼ Running generateAssets hook

An unhandled rejection has occurred inside Forge: Error: EACCES: permission denied, lstat 'D:\projectvuejs\node_modules\vuePlugins'

Additional information

No response

JoseCanulEI avatar Feb 08 '24 17:02 JoseCanulEI