Comments (7)
The names of the actual projects would help. napa
doesn't do anything fancy, it just git clones a repo. So if project A uses napa
then it should have napa
in it's install script or include the napa
installed package in the published package.
from napa.
Both projects A and B are locally developed, their names are not relevant in this case.
In the package.json for project A, there is a script hook "postinstall": "napa"
and a "napa"
section where I bring in my dependencies.
I then locally publish project A as an npm module using npm link
and then in the package.json for project B, I install my local npm module.
When that hits the "postinstall"
script, project B fails to install project A, because it cannot find napa
.
If I npm install napa in the project B directory, then project A will install into project B.
I do not want project B to have to know that it needs napa in order for project A to be installed.
from napa.
When that hits the "postinstall" script, project B fails to install project A, because it cannot find napa.
Is napa
a dependency? If your package requires another to install, it will need to be a dependency of that project.
from napa.
@RichardMarks did you get this resolved? I want to do something similar and I'm wondering if I should avoid it. Did adding napa to the dependencies block of the Package A help?
from napa.
@linkabi9 No, I did not get this resolved, and no adding napa as a dependency does not help either.
from napa.
@RichardMarks @linkabi9 Here is an example: https://github.com/shama/napa-nested-deps
from napa.
great, i'll be able to use this while i build some in house front end widgets with pre-npm external dependencies. thanks!
from napa.
Related Issues (20)
- some question, about how to use it. I just want to know where this package used to? HOT 3
- Can't download jQuery HOT 2
- --save flag HOT 1
- Download a single js file and give it a location HOT 1
- Custom install folder HOT 2
- Peer dependencies HOT 3
- can't napa be run on npm postInstall hook? HOT 1
- download a single JS file HOT 1
- Flat (stripped folders) of ZIPs / Update download to 5 HOT 1
- Yarn integration: Is it possible? HOT 2
- napa not working ubuntu HOT 3
- Default version for generated package.json is always '0.0.0' HOT 1
- Nested napa dependencies not resolving correctly
- Packages installed with napa removed after install other package HOT 5
- Corrupt cache HOT 1
- zip folder structure lost
- r HOT 1
- Downloading a jar unpacks it
- RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from napa.