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.

installing npm package

See original GitHub issue

I have a Lerna solution up and running.

I want to install a third party lib, however, when I run “npm install” or “yarn add” it fails. The reason is that the npm is trying to resolve the packages, and one is a lerna package, not an offical npm package.

$ yarn add --dev react-router
yarn add v0.21.3
[1/4] Resolving packages...
error Couldn't find package "fl-server" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

note that ‘fl-server’ is a private package within my packages folder and included in

  "devDependencies": {
    "react": "^15.5.4",
    "react-dom": "^15.5.4",
...
    "fl-server": "^1.0.0",
    "fl-components": "^1.0.0"
  }

How do I install third party packages?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
evocateurcommented, Jul 13, 2017

Yarn is a different beast. There really isn’t any lerna-specific documentation either way, sorry.

On Jul 12, 2017, at 22:25, danoc notifications@github.com wrote:

@evocateur – Does that mean the packages should also not have a yarn.lock? (Feel free to point me to documentation! 😄 )

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

1reaction
danoccommented, Jul 12, 2017

@evocateur – Does that mean the packages should also not have a yarn.lock? (Feel free to point me to documentation! 😄 )

Read more comments on GitHub >

github_iconTop Results From Across the Web

Downloading and installing packages locally - npm Docs
You can install a package locally if you want to depend on the package from your own module, ... To install a public...
Read more >
npm-install - npm Docs
This command installs a package and any packages that it depends on. If the package has a package-lock, or an npm shrinkwrap file,...
Read more >
Downloading and installing packages globally - npm Docs
Installing a package globally allows you to use the code in the package as a set of tools on your local computer. To...
Read more >
Downloading and installing Node.js and npm
To publish and install packages to and from the public npm registry or a private npm registry, you must install Node.js and the...
Read more >
How the Heck Do You Install npm Packages?
Next up in this beginner's guide to npm is likely why you're here in the first place: installing npm packages, which uses 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