Skip to content

NPM Run Configuration: cannot execute some scripts from package.jsonΒ #1899

@nimo23

Description

@nimo23

I have a NPM run configuration pointing to an existing package.json (which is not in the root-directory of the project but within a subfolder):

Image

However, executing the run configuration does not work:

npm error code ENOENT
npm error syscall open
npm error path /Users/ev/ide/app/package.json
npm error errno -2
npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open '/Users/ev/ide/app/package.json'
npm error enoent This is related to npm not being able to find a file.
npm error enoent
npm error A complete log of this run can be found in: /Users/ev/.npm/_logs/2025-08-03T00_54_31_316Z-debug-0.log

The log says that package.json cannot be found in /Users/ev/ide/app/package.json, although it should look in /Users/ev/ide/app/src/main/webui/package.json as specified in the launch configuration. I also tried with absolute path (= /Users/ev/ide/app/src/main/webui/package.json) in the launch configuration - it shows the same error.

  • On Mac OS
  • Eclipse Version: 2025-03 (4.35.0)
  • Wild Web Developer: 1.3.10.202502071606

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions