Skip to content

Install a project with a clean slate (npm ci) fails with NPM 7 #15095

@fluiddot

Description

@fluiddot

The problem

I'm trying to run npm ci (Install a project with a clean slate) with NPM version 7.5.3 and it's giving the following error:

npm ERR! code ENOENT
npm ERR! syscall chmod
npm ERR! path <PROJECT_DIR>/node_modules/appium/build/lib/main.js
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, chmod '<PROJECT_DIR>/node_modules/appium/build/lib/main.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

Project directory has been replaced in the logs with <PROJECT_DIR>.

Environment

  • Appium version (or git revision) that exhibits the issue: 1.20.2
  • Last Appium version that did not exhibit the issue (if applicable): N/A
  • Desktop OS/version used to run Appium: OSX
  • Node.js version (unless using Appium.app|exe): v14.15.5
  • Npm or Yarn package manager: 7.5.3
  • Mobile platform/version under test: N/A
  • Real device or emulator/simulator: N/A
  • Appium CLI or Appium.app|exe: CLI

Details

It can be reproduced by running the following commands in a project folder:

  1. npm install -g [email protected]
  2. npm install appium
  3. npm ci

After this the following runs of npm install fail with the error described above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NodeNode.js-specific issueThirdPartyupstream problems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions