Repository navigation
error when using npm to run install #6804
Description
Activity
Is there really still a convincing reason to use Yarn at all? Considering that all of the tooling should work with NPM v7.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
@nicolethoen This is probably still relevant no?
Note that in order to support NPM the support for Yarn will have to be dropped as their lockfile formats are incompatible. We are talking about running
npm installin the root of this repository, correct?hm.... I think when I opened this, I assumed that we were supporting both. If we can only choose one or the other, I guess we will have to consider which one is actually best - the PF team is definitely in the habit of using Yarn, but that's not necessarily a good reason to opt for Yarn...
Yarn does have some possible advantages such as Plug'n'Play and Zero-Installs. However these features are currently not being used in this repository.
Note that if we are going to evaluate package managers then PNPM is also worth taking a look at.
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsBacklog
when using npm 8 to execute
npm installI get the following error:It seems - according to stack overflow that "When using npm 7, this comes up a lot because peer dependencies issues are treated as errors in version 7 whereas they were generally only warnings in version 6. Usually using --legacy-peer-deps makes it work with npm 7[+].”
When I run
npm install --legacy-peer-deps, the install works with no errors.It seems we might need to either readdress our dependencies, or update our README to suggest adding the flag or opting for yarn to perform the install
Jira Issue: PF-190