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.

Add npm dependencies?

See original GitHub issue

Continuing discussion from https://github.com/fable-compiler/Fable/issues/1649#issuecomment-440917740

There are currently two issues for Fable users and authors. Would it be possible to fix both by adding npm dependencies to Paket?

  • Fable users need to handle two package managers: Paket/Nuget and npm
  • Sometimes Fable lib authors need npm dependencies and they have no way to specify that, so users need to check the docs and remember what they should install.

Note I’m not talking about Fable.React because it’s loosely coupled to React (can be used with preact, or in a netcore app), but about other libs where the npm dependency is more transparent to the user (Fulma, Zaid’s bindings…).

What would Paket do with npm dependencies?

  • I assume Paket won’t take care of the actual installation, just adding the packages to package.json (translating the semver syntax used by Paket to npm’s one).
  • Should Paket run npm install automatically after restore/install if it detects npm dependencies?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
nojafcommented, Nov 22, 2018

@alfonsogarciacaro I’m like the biggest fan of Paket .NET Core, install via

dotnet tool install --tool-path “.paket” Paket --add-source https://api.nuget.org/v3/index.json

0reactions
ericnewton76commented, Dec 21, 2018

Just my 2c:

Paket is not npm, and npm is not paket. I wouldn’t expect npm to run paket install if it happened to see a paket.references file locally. That’s for the developer and documentation of how to build the project.

If Fable is used to nuget/paket and npm, then it’s part of the ecosystem already. Create a build.sh or build.cmd which invokes both if you need to.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding dependencies to a package.json file
To add dependencies and devDependencies to a package.json file from the command line, you can install them in the root directory of your...
Read more >
How to Install npm, Master npm Commands & Use Packages
This step-by-step guide will show you how to install npm, and master common commands in the Node Package Manager (npm) command-line ...
Read more >
Add "globalDependencies" option in package.json for ...
Store all dependencies at one place, using the same folder. i.e. /var/lib/npm ... This has the problem that two separate applications that are ......
Read more >
node.js - npm install won't install devDependencies
On windows for some reason when I run npm install it won't install devDependencies. AFAIK it should. If I run npm install --dev ......
Read more >
Installing Dependencies with npm
Anytime you change a dependency in package.json , you need to make sure that npm applies the changes with the command $ npm...
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