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.

Module not installing into node_modules folder

See original GitHub issue

Prerequisites

  • Using yarn
  • Using an up-to-date master branch
  • Using latest version of devtools. See wiki for howto update
  • Link to stacktrace in a Gist (for bugs)
  • For issue in production release, devtools output of DEBUG_PROD=true yarn build && yarn start

Expected Behavior

* = name of the typeface on yarn add typeface-* "typeface-": “version” => package.json (exist) ./flow-typed/npm/typeface-_vversion.js (exist) ./node_modules/typeface-*

Current Behavior

* = name of the typeface on yarn add typeface-* "typeface-": “version” => package.json (exist) ./flow-typed/npm/typeface-_vversion.js (not exist) ./node_modules/typeface-*

Possible Solution

use npm instead yarn or remove node_modules folder and ‘yarn install’

Steps to Reproduce (for bugs)

* = name of the typeface yarn add typeface-*

Your Environment

  • Node version : v10.13.0
  • NPM version : 6.4.1
  • Yarn version : 1.12.1
  • Operating System and version : win 10

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vikr01commented, Nov 7, 2018

Oh I think what you’re asking is how to make <folder> fallback to <folder>/index.css if <folder>/index.js does not exist.

In that case, you change this line to:

resolve: {
  extensions: ['.js', '.jsx', '.json', '.css']
},

In this case, the resolution will check .js first and .css last. If you want to change the resolution order, re-arrange that array accordingly.

0reactions
panpanshcommented, Nov 10, 2018

yes first it’s a report for a “quantum” bug 😃 last for extensions is extra 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm install doesn't create node_modules directory
1) In Command prompt -> Goto your project directory. · 2) Command : npm init · 3) It asks you to set up...
Read more >
npm install not installing dependencies listed in package.json ...
If I do npm install jquery --save , the package.json isn't modified yet the dependency is present in node_modules folder.
Read more >
How to clean node modules folder of packages that are not in ...
Your answer​​ You could remove your node_modules/ folder and then reinstall the dependencies from package. json. This would erase all installed ...
Read more >
npm install | how it works - StackChief
When run without arguments, npm install downloads dependencies defined in a package.json file and generates a node_modules folder with the installed modules ......
Read more >
How to clean up node modules? | by Mario Kandut - Medium
Delete the folder and reinstall ; Use npm prune (starting with npm version 6). Manually remove and reinstall. You could remove your node_modules/...
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