All Questions
Tagged with package dependencies
309
questions
153
votes
8
answers
208k
views
Print a list of all installed node.js modules
In a node.js script that I'm working on, I want to print all node.js modules (installed using npm) to the command line. How can I do this?
console.log(__filename);
//now I want to print all ...
126
votes
3
answers
63k
views
Do you put Babel and Webpack in devDependencies or Dependencies?
I'm new to npm and don't really understand what should go into dependencies vs. devDependencies. I know that for testing libraries they should go into dev, but how about for things like babel and ...
62
votes
4
answers
51k
views
How to list/download the recursive dependencies of a debian package?
I need to list/download all the recursive dependencies of a debian package.
Suppose i need to install package a.deb and it depends on package b.deb and again package b.deb depends on package c.deb.
...
61
votes
6
answers
35k
views
Listing R Package Dependencies Without Installing Packages
Is there a simple way to get a list of R package dependencies (all recursive dependencies) for a given package, without installing the package and it's dependencies? Something similar to a fake ...
61
votes
6
answers
47k
views
Don't include dependencies from packages.config file when creating NuGet package
I am using Nuget to create packages. I would like to create a package which does not contain any dependencies (in the .nuspec) file to any other NuGet packages. My project does have NuGet package ...
61
votes
7
answers
52k
views
How to install dependencies when using "R CMD INSTALL" to install R packages?
I'm developing my first R package (using R 2.13, Ubuntu 10.10). Let's call it foo and let's say that the code in the R/ directory begins with the line library(bar), where bar is an existing package ...
58
votes
5
answers
37k
views
Install a local R package with dependencies from CRAN mirror
I have built an R package, i.e. I have the mypackage.tar.gz file. This package depends on several other packages, all downloadable and installable from any CRAN mirror.
Now I want to install this ...
52
votes
7
answers
36k
views
How to tell what packages you have used in R
I have a very long R script with many if statements and exception cases. As i've been going, if been importing and testing libraries as I've gone and haven't really documented them very well. The ...
40
votes
9
answers
37k
views
Java package cycle detection: how do I find the specific classes involved? [closed]
What tool would you recommend to detect Java package cyclic dependencies,
knowing that the goal is to list explicitly the specific classes involved in the detected 'across-packages cycle'?
I know ...
38
votes
2
answers
13k
views
Package Manager vs Dependency Manager
What is the difference between a package manager and a dependency manager?
32
votes
1
answer
14k
views
How to install build dependencies directly from the debian/control file?
I have a Debian source package, it contains a standard debian/control file, which lists a "Build-Depends:" field.
How can I install those build depends without a lot copy and paste?
The package is ...
28
votes
5
answers
23k
views
How to organize packages (and prevent dependency cycles)?
I've been running some metrics on my Java project and apparently there are a lot of dependency cycles between packages. I didn't really know how to organize stuff into packages, so I just did what ...
27
votes
2
answers
25k
views
How to properly include dependencies in R-package?
I was trying now for several hours to build a package in R and getting a bit desperate about how slowly I progress. I managed quite fast to build a package with no dependencies, everything works fine. ...
26
votes
4
answers
22k
views
How to make maven place all jars common to wars inside the same EAR to EAR root?
We have a solution with numerous wars. Wars are similar in the sense they all use hibernate and spring. This means that we have a number of same jars inside each war. This is becoming a problem, ...
23
votes
5
answers
18k
views
NuGet: pack command is NOT including nuget dependencies
i have the following setting:
nuget.exe Version: 1.6.21205.9031
Project A.csproj packaged into A.1.0.0.0.nupkg, and published to a LOCAL package repository hosted on my local IIS (My VS Nuget ...
19
votes
3
answers
11k
views
how can I force npm 3 to install nested dependencies?
I just upgraded to npm version 3 and noticed one of the biggest changes it made is that it enforces a flat dependency tree.
Your dependencies will now be installed maximally flat. Insofar as is ...
18
votes
1
answer
2k
views
Haskell Cabal: "package indirectly depends on multiple versions of the same package"
After clearing out all of my cabal installed packages, I ran this following session:
$ cabal update
Downloading the latest package list from hackage.haskell.org
james@bast:~/.cabal/packages$ cabal ...
17
votes
4
answers
11k
views
How to count the number of installed packages, including dependencies
Is there an easy way to obtain a count of installed npm packages, both global and local to an application?
For example, after running create-react-app [1], I get screens-full of packages and ...
17
votes
4
answers
4k
views
Dependency management in R
Does R have a dependency management tool to facilitate project-specific dependencies? I'm looking for something akin to Java's maven, Ruby's bundler, Python's virtualenv, Node's npm, etc.
I'm aware ...
16
votes
4
answers
10k
views
In setup.py or pip requirements file, how to control order of installing package dependencies?
I've got a Python package with its setup.py having dependencies declared via the usual way, in install_requires=[...]. One of the packages there, scikits.timeseries, has a setup.py expecting numpy to ...
15
votes
3
answers
37k
views
Package is missing dependencies for libraries - OpenWRT
I am trying to compile OpenWRT with a custom package I have made inside it. Here is the OpenWRT Makefile for my package:
#
# Copyright (C) 2008 OpenWrt.org
#
# This is free software, licensed under ...
15
votes
1
answer
469
views
How do I declare a dependency that can be fulfilled by one of many differently named packages?
In a Raku distribution how do I depend on either Foo::Bar or Foo::Baz without requiring both?
14
votes
1
answer
24k
views
Is there a way to force conda install to install the packages and its dependencies instead of giving an error
I have a miniconda environment that I am installing packages in. I want to install a package and I understand that there can be some conflicts, however to resolve those conflicts either requires a ...
13
votes
3
answers
43k
views
How to determine dependencies of recipes in yocto?
I want to add the gedit package to the the image. But I am not able to find the dependencies of the gedit package. How to find the dependencies (DEPENDS) in yocto?
13
votes
1
answer
5k
views
R package dependencies
i'm trying to build a R package, but it seems that there are some problems with the package dependencies. If I run the code in R, I need the packages "rgdal" and "rgeos", so for creatng the package ...
12
votes
4
answers
36k
views
Flutter | Dart : Target of URI does not exist
I am making my first Application to build an Android App with Flutter.
I am using Android Studio as IDE.
The problem is when I import the http package:
import 'package:http/http.dart' as http;
I ...
12
votes
6
answers
51k
views
What Situations Cause Oracle Packages to Become Invalid?
The scenario that created this question:
We have a package that is a dependency of another package, sometimes making changes to the "parent" package causes the dependent package to become invalid, ...
12
votes
1
answer
6k
views
How to solve LaTeX package warning for "everypage"?
After updating MiKTeX, Texmaker and all installed packages, I receive an error when compiling the document. The error message is the following:
Package everypage Warning: Functionality similar to ...
12
votes
1
answer
2k
views
Loading the testthat package only for tests but not requiring in dependencies
Building a package results in the following warning:
* checking for unstated dependencies in tests ... WARNING
‘library’ or ‘require’ call not declared from: ‘testthat’
* checking tests ...
Running ...
12
votes
0
answers
662
views
Should polyfills be a dependency or a devDependency?
As explained by this SO post, polyfills should be in the dependency folder.
However, the Array.find() polyfill has the following installation instructions.
npm install --save-dev jspolyfill-array....
11
votes
3
answers
69k
views
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages
I have tried to install wine on elementary os 0.21 yesterday.
While doing so i stumbled upon this output:
Reading package lists... Done
Building dependency tree
Reading state information... ...
11
votes
2
answers
11k
views
Module vs. Dependency vs. Library vs. Package vs. Component
I understand that packages hold several modules, but I'm starting to get confused as to if packages and modules are dependencies. Also, libraries to me maybe seem like packages you install via NPM, ...
11
votes
2
answers
1k
views
rbundler build error: "cannot open file 'startup.Rs': No such file or directory"
I'm running into an issue when building the following package: https://github.com/yoni/rbundler
My test attempts to run rbundler's bundle command on a trivial package which has a single dependency. ...
11
votes
3
answers
755
views
Null safety migration error: package has unmigrated dependencies. But all my dependencies declare support for null-safety
Im trying to migrate dart null safety but I get the following error when I run dart migrate
Bad state: Error: package has unmigrated dependencies.
Before migrating your package, we recommend ensuring ...
9
votes
8
answers
3k
views
Is there a visualization tool that can inspect a Java code base and report inter-package dependencies?
We have a Java code base that has grown to be too big for a single monolithic JAR (more than 5000 classes). One of the tasks that we are investigating is how much effort would it be to break this ...
9
votes
1
answer
4k
views
Possible to state explicit versions of package dependencies?
I tend to be rather explicit than implicit about the code I write. So after having managed to create my own packages, the next thing that immediately comes to my mind is how best to ensure robustness ...
9
votes
1
answer
5k
views
How to install a Debian package's Build-Depends and Depends
If I have a debian/control file with Build-Depends and Depends entries.
How do I install both sets of dependencies?
At the moment I'm using the following command to create a stub package that ...
9
votes
1
answer
1k
views
Why do all of the leading open-source Java libraries have circular dependencies among their packages?
I've been researching Java package structure and dependency patterns over the last few weeks. One of the common threads across the writings on the subject is the simple rule that package dependencies ...
8
votes
1
answer
6k
views
Usage of direct references in pyproject.toml with hatchling backend
If I understand the documentation for hatchling correctly, in a pyproject.toml with hatchling as a backend, I should be able to to add a local package within the package folder by using the local ...
8
votes
4
answers
20k
views
OpenWRT - package missing dependencies when recompiling
If anybody can help me with this I would really appreciate it because it's driving me insane.
When I compile an OpenWRT image from scratch including my packages, usually, everything works fine.
...
8
votes
1
answer
2k
views
Create an R package with dependencies
I'm trying to write my first R package. The functions in the package depend on the getURL() function from the RCurl package. I followed the tutorials on:
http://r-pkgs.had.co.nz/ and
http://...
8
votes
4
answers
2k
views
Installing ScientificPython as a dependency
I am trying to list ScientificPython as a dependency in my setup.py. However, during the installation process, python seems to not find the package. What is wrong in my approach?
Here is my setup:
...
8
votes
2
answers
4k
views
How to serve a React component library dependent on Styled Components to another library that also has a Styled Comopnents dependency?
I've recently converted an internal component library I'm working on to Styled Components. That component library has Styled Components listed as a peerDep and a devDep in the package.json. From there ...
7
votes
2
answers
3k
views
How to pack a jar without dependency classes in gradle similar to maven
How to write a gradle script so that the application jar should be packed without dependency classes similar to maven jar package
7
votes
2
answers
193
views
Find all packages that depend on a specific one
Is it possible to scan all the packages on CRAN in order to find all those that are dependent on a specific package?
I have found out how to do that but only on the packages I have installed and ...
7
votes
1
answer
3k
views
Auto-add PackageReferences to NuGet package
In my project I reference some packages with PackageReference like that:
But, if I run pack command, it doesn't include them unless I manually add them to .nuspec file.
I want to automatically add ...
6
votes
1
answer
540
views
How to make a dependency optional in a package
I am coding a package in R which – among other things – can show plots with rgl. However, I found out with my students that rgl is a hassle: especially with those who use Macs. I end up spending a lot ...
5
votes
1
answer
10k
views
Is there an equivalent to Python's virtualenv in nodejs?
Consider Python right now:
You can have a single instance of the interpreter, say, 2.7.
You can install virtualenv, globally, and its wrappers (as long as you have permissions).
You can create ...
5
votes
3
answers
1k
views
Julia: create a package with optional dependencies
I want to build a numerical package that also has optional support for visualization. For simplicity, let's say the respective dependencies are NumPackage for the heavy lifting
and VizPackage for ...
5
votes
1
answer
2k
views
Why library() or require() should not be used in a R package
My goal is to create R package which use other library such as grid and ggplot2.
According to
https://tinyheero.github.io/jekyll/update/2015/07/26/making-your-first-R-package.html, it is said that ...