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.

npm install on node 14 includes optional dependencies

See original GitHub issue

Description of the issue

Running npm install on node 14 on a mac installs optional dependencies

Steps to reproduce the issue

Run npm install on node 14 on a mac

Actual vs expected behaviour

Install optional dependencies including Cypress, 1137 packages in total Expected only core dependencies

Environment (where applicable)

  • Operating system: MacOS
  • GOV.UK Prototype Kit version: main
  • Node: 14.2.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
joelanmancommented, Jun 7, 2022

Might take a while to boot up the old macbook, probably worth trying with 6, 6.14 or later, according to https://nodejs.org/en/download/releases/. Might be worth covering the npm for node 12 too

0reactions
lfdebruxcommented, Jun 17, 2022

This was properly fixed with our new release process in #1399.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm-install - npm Docs
To install all modules listed in both dependencies and devDependencies when NODE_ENV environment variable is set to production , you can use --production=false ......
Read more >
[BUG] npm ci installs an optional dependency which targets a ...
npm ci seems to install an optional dependency for the linux os when running on a mac and seems to install the optional...
Read more >
Force npm install to install optional dependencies for other ...
A build task contains all its dependencies at build time. Is there a way I can force npm to download all OS optional...
Read more >
node.js - Optional dependencies in npm?
declare optional dependencies in package.json that aren't automatically installed by npm install , say optionalPeerDependencies; a custom require -style ...
Read more >
How To Install Node.js and NPM On Windows - ServerMania
Node.js is one of the most popular open-source JavaScript runtimes today. Its popularity has risen in the past decade because of the ...
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