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.

Online yarn installs created an undesired package install

See original GitHub issue

I just installed create-react-app with yarn global add create-react-app and created a project. When i was looking through the dependencies i found out this

{
  "name": "blue",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "false": "0.0.4",
    "react": "^15.4.2",
    "react-dom": "^15.4.2"
  },
  "devDependencies": {
    "react-scripts": "0.9.3"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject"
  }
}

And i was not sure what was “false”:“0.0.4”, while looking at the module i found out that false was just like another leftpad. I find it hard to reason why has been included in cra. If it was intended to be included sorry, i just found odd.

// false module source code :/
module.exports = function () {
  return false;
};

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
gaearoncommented, Mar 5, 2017

No worries, thanks for helping!

0reactions
lpalmescommented, Mar 5, 2017

@gaearon i’ve been looking at it and now that i got more time (had to deliver a mobile app) i will try to come up with a solution, i’m looking into awk to add testing in the script, thank you, and sorry for taking such a long time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plug'n'Play | Yarn - Package Manager
An overview of Plug'n'Play, a powerful and innovative installation strategy for Node.
Read more >
How to Install Yarn on Ubuntu {With Screenshots} - phoenixNAP
Install Yarn on Ubuntu by following this simple step-by-step tutorial. Also, learn how to add and remove dependencies successfully.
Read more >
Yarn installing too many libraries - Stack Overflow
I've decided to reset Yarn by reinstalling it, removing all the dependencies installed locally and saving the package.json file.
Read more >
Yarn lock: how it works and what you risk without maintaining ...
A lockfile ( yarn.lock ) is generated (if there isn't any) according to the contents of package.json; Packages are installed according to ...
Read more >
A guide through The Wild Wild West of setting up a mono repo ...
Lerna calls yarn/npm install for each package inside the project and then creates symlinks between the packages that refer to each other.
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