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.

Packages installed with napa removed after install other package

See original GitHub issue

I have in my package.json

"napa": {
  "foo": "author/foo#branch"
},
"scripts": {
  "install": "napa"
},
"devDependencies": {
  "napa": "^3.0.0"
}

When i do npm i, napa creates node_modules/foo with my module. But when i do npm i -D other-package, directory node_modules/foo will be removed. What i do wrong?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:6
  • Comments:5

github_iconTop GitHub Comments

1reaction
ajboghcommented, Sep 3, 2018

I have a PR that might solve this issue by allowing you to specify a different folder for napa dependencies, such as vendor. See #84.

0reactions
JakedUpcommented, Mar 29, 2019

Ah, ok – I did not know this. Thanks for the clarification

Read more comments on GitHub >

github_iconTop Results From Across the Web

PRODUCT WARRANTY POLICY - NAPA Auto Parts
For NAPA Drive Motor Batteries, warranty is void if any of these conditions occur: tampering or removal of manufacuturing. ID labels or “Warranty...
Read more >
Why does 'npm install' remove my installed packages in ...
In my case it happened due to outdated package-lock.json (it was not commited to git after latest package.json change).
Read more >
salt.modules.pkgutil
Remove a package and all its dependencies which are not in use by other packages. name. The name of the package to be...
Read more >
Package Manager Issues (Pop!_OS) - System76 Support
apt autoremove --purge - Running this command with no specified package will remove any packages that were previously dependencies for other installed packages...
Read more >
11.2. Installing and Removing Packages
You can install and remove multiple packages by selecting packages to be installed / removed and then clicking Apply. The Package selections window...
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