Maven check for updated dependencies in repository

Is there a Maven plugin that allows you to check if there are newer versions of dependencies available in the repository? Say, you are using dependency X with version 1.2. Now a new version of X is released with version 1.3. I’d like to know, based on the dependencies used in my project, which dependencies … Read more

node.js TypeError: path must be absolute or specify root to res.sendFile [failed to parse JSON]

[add] So my next problem is that when i try adding a new dependence (npm install –save socket.io). The JSON file is also valid. I get this error: Failed to parse json npm ERR! Unexpected string npm ERR! File: /Users/John/package.json npm ERR! Failed to parse package.json data. npm ERR! package.json must be actual JSON, not … Read more

The engine “node” is incompatible with this module

I am getting below yarn error when deploying to AWS error [email protected]: The engine “node” is incompatible with this module. Expected version “>=6 <7 || >=8”. Got “7.0.0” Any idea how will this be resolved? Will this work out if I specify engine in package.json { “engines” : { “node” : “>=8.0.0” } } 14 … Read more

Exclude all transitive dependencies of a single dependency

In Maven2, to exclude a single transitive dependency, I have to do something like this: <dependency> <groupId>sample.group</groupId> <artifactId>sample-artifactB</artifactId> <version>1</version> <exclusions> <exclusion> <groupId>sample.group</groupId> <artifactId>sample-artifactAB</artifactId> </exclusion> </exclusions> </dependency> The problem with this approach is that I have to do this for every transitive dependency contributed by sample-artifactB. Is there a way to use some sort of wildcard … Read more

npm install private github repositories by dependency in package.json

I’m trying to install github private repository by npm that includes other private github repositories as dependency. Have tried a lot of ways and posts but none is working. Here is what i’m doing : npm install git+https://github.com/myusername/mygitrepository.git in package.json is like : “dependencies”: { “repository1name”: “git+https://github.com/myusername/repository1.git”, “repository2name”: “git+https://github.com/myusername/repository2.git” } What is the the right … Read more

How do I install package.json dependencies in the current directory using npm

I have a web app: fooapp. I have a package.json in the root. I want to install all the dependencies in a specific node_modules directory. How do I do this? What I want Lets say I have two widget dependencies. I want to end up with a directory structure like this: node_modules/ widgetA widgetB fooapp/ … Read more