Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Broken npm ci since forks replaced official dependencies #5929

Closed
Milestone
@aubm

Description

@aubm

Hello,

It appears that recent changes inpackage.json have broken thenpm ci with npm < v7.x

Probably due tochanges to the lockfile.

Prior to npm 7 yarn.lock files were ignored

Source:https://github.blog/2020-10-13-presenting-v7-0-0-of-the-npm-cli/

Steps to reproduce the error with npm 6

cat '{  "name": "test-project",  "version": "1.0.0",  "description": "",  "main": "index.js",  "scripts": {    "test": "echo \"Error: no test specified\" && exit 1"  },  "author": "",  "license": "ISC",  "dependencies": {    "plotly.js": "^2.5.0"  }}' > package.jsonnpm install --package-lock-onlynpm ci

npm ci exists with the following error:

npm ERR! code ETARGETnpm ERR! notarget No matching version found for zero-crossings@1.1.0.npm ERR! notarget In most cases you or one of your dependencies are requestingnpm ERR! notarget a package version that doesn't exist.npm ERR! A complete log of this run can be found in:npm ERR!     /Users/aurelienbaumann/.npm/_logs/2021-09-07T20_14_08_058Z-debug.log

Looking inpackage-lock.json to see the details aboutzero-crossings, I can see theresolved field is ignored.

"zero-crossings": {  "version": "1.1.0",  "resolved": "git+https://github.com/plotly/zero-crossings.git#4746771f490344e21c84d1f631cb661d8c5ff508"}

We should probably find a workaround this if we want to keep supporting npm < 7.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp