Title: Broken npm ci since forks replaced official dependencies · Issue #5929 · plotly/plotly.js · GitHub
Open Graph Title: Broken npm ci since forks replaced official dependencies · Issue #5929 · plotly/plotly.js
X Title: Broken npm ci since forks replaced official dependencies · Issue #5929 · plotly/plotly.js
Description: Hello, It appears that recent changes in package.json have broken the npm ci with npm < v7.x Probably due to changes to the lockfile. Prior to npm 7 yarn.lock files were ignored Source: https://github.blog/2020-10-13-presenting-v7-0-0-of...
Open Graph Description: Hello, It appears that recent changes in package.json have broken the npm ci with npm < v7.x Probably due to changes to the lockfile. Prior to npm 7 yarn.lock files were ignored Source: https://git...
X Description: Hello, It appears that recent changes in package.json have broken the npm ci with npm < v7.x Probably due to changes to the lockfile. Prior to npm 7 yarn.lock files were ignored Source: https://...
Opengraph URL: https://github.com/plotly/plotly.js/issues/5929
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Broken npm ci since forks replaced official dependencies","articleBody":"Hello,\r\n\r\nIt appears that recent changes in `package.json` have broken the `npm ci` with npm \u003c v7.x\r\n\r\nProbably due to [changes to the lockfile](https://github.blog/2021-02-02-npm-7-is-now-generally-available/#changes-to-the-lockfile).\r\n\r\n> Prior to npm 7 yarn.lock files were ignored\r\n\r\nSource: https://github.blog/2020-10-13-presenting-v7-0-0-of-the-npm-cli/\r\n\r\n## Steps to reproduce the error with npm 6\r\n\r\n```\r\ncat '{\r\n \"name\": \"test-project\",\r\n \"version\": \"1.0.0\",\r\n \"description\": \"\",\r\n \"main\": \"index.js\",\r\n \"scripts\": {\r\n \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\r\n },\r\n \"author\": \"\",\r\n \"license\": \"ISC\",\r\n \"dependencies\": {\r\n \"plotly.js\": \"^2.5.0\"\r\n }\r\n}' > package.json\r\n\r\nnpm install --package-lock-only\r\nnpm ci\r\n```\r\n\r\n`npm ci` exists with the following error:\r\n\r\n```\r\nnpm ERR! code ETARGET\r\nnpm ERR! notarget No matching version found for zero-crossings@1.1.0.\r\nnpm ERR! notarget In most cases you or one of your dependencies are requesting\r\nnpm ERR! notarget a package version that doesn't exist.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR! /Users/aurelienbaumann/.npm/_logs/2021-09-07T20_14_08_058Z-debug.log\r\n```\r\n\r\nLooking in `package-lock.json` to see the details about `zero-crossings`, I can see the `resolved` field is ignored.\r\n\r\n```\r\n\"zero-crossings\": {\r\n \"version\": \"1.1.0\",\r\n \"resolved\": \"git+https://github.com/plotly/zero-crossings.git#4746771f490344e21c84d1f631cb661d8c5ff508\"\r\n}\r\n```\r\n\r\nWe should probably find a workaround this if we want to keep supporting npm \u003c 7. ","author":{"url":"https://github.com/aubm","@type":"Person","name":"aubm"},"datePublished":"2021-09-07T21:19:01Z","url":"https://github.com/plotly/plotly.js/issues/5929"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8ed04609-fb89-f635-2042-7a388f5e51f6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C116:25598F:442C88:5C3D62:6B00CA88 |
| html-safe-nonce | 7da16c3087a0454b563d61eacdc792c74c88e992fcd6c63fa784988df852950d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTE2OjI1NTk4Rjo0NDJDODg6NUMzRDYyOjZCMDBDQTg4IiwidmlzaXRvcl9pZCI6IjkzNjQwMzk4NDQ0MzI5NjM5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5446ae8f19543b030c4b5329cff0c0d5408bebb89c5df6ccdd962ec4395c5d9f |
| hovercard-subject-tag | issue:990362501 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/5929/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c48d07238be865f8752c9033bae9c0b7c6577852df31a71c25e22093c6c0cd98/plotly/plotly.js/issues/5929 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c48d07238be865f8752c9033bae9c0b7c6577852df31a71c25e22093c6c0cd98/plotly/plotly.js/issues/5929 |
| og:image:alt | Hello, It appears that recent changes in package.json have broken the npm ci with npm < v7.x Probably due to changes to the lockfile. Prior to npm 7 yarn.lock files were ignored Source: https://git... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aubm |
| hostname | github.com |
| expected-hostname | github.com |
| None | 98dc00e171c204462a6f367482a0f8c3c6b5dbca99cd7390e82d2df49ce096e4 |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 45646037 |
| octolytics-dimension-repository_nwo | plotly/plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45646037 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ef013399cf0a3c324bea644a685d7c1e0f06b5b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width