Skip to content

EACCES: permission denied to run npm start #3493

Open
@JoseCanulEI

Description

@JoseCanulEI

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked/needs-reproIssues unable to be reproduced by maintainersbug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions