question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

https dependencies no longer work with npm 7 in CI

See original GitHub issue

Expected Behavior

The expected behaviour is that all modules of the official latest version of the Celo SDK are published to npm and not pulled from third party dependencies and external URLs like GitHub. Using non-npm dependencies has always led to many issues that are hard to debug and predict in all the projects I worked on so far.

Current Behavior

A breaking change introduced in npm 7 (see https://github.com/npm/cli/issues/2610) causes all https dependencies to be re-written as git+ssh in the package-lock.json. This breaks in many environment (e.g. most CI environments like GitHub actions) with a permission denied error trying to install Celos non-npm dependencies:

Screen Shot 2021-04-06 at 2 20 53 PM

This is related to my previous PR https://github.com/celo-org/celo-monorepo/pull/6474 but the ideal solution is to really not use any external non-npm dependencies like that at all.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
aslawsoncommented, Apr 7, 2021

Thanks @daffl!

0reactions
github-actions[bot]commented, Oct 31, 2022

This issue is stale and will be closed in 30 days without activity

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm v7 does not install linked packages dependencies #2339
In npm v6 the dependencies of a local linked package are installed. This means that if app has my-local-pkg as a dependency, running...
Read more >
npm-ci
npm ci can only install entire projects at a time: individual dependencies cannot be added with this command. If a node_modules is already...
Read more >
npm 7 is now generally available! - The GitHub Blog
Automatically installing peer dependencies is an exciting new feature introduced in npm 7. In previous versions of npm (4-6), peer dependencies ...
Read more >
Unable to resolve dependency tree error when installing npm ...
You have dependency conflict (incorrect and potentially broken dependency) as it says, so try to run the command with --force , or --legacy-peer ......
Read more >
Heroku Node.js Support
If a yarn.lock file is detected in the root of the project, yarn is used for installing dependencies and running scripts. Otherwise, npm...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found