awslabs/dynamodb-cross-region-library

mvn install fails with npm dependency issue

manasapte opened this issue · 3 comments

I checked out this repo and started following the directions in your README.md
step 1: downloaded all the preview jars by running the shell script
step 2: ran mvn install from the git root directory

mvn install fails and generates the following log
npm ERR! System Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
npm ERR! node -v v0.10.28
npm ERR! npm -v 2.0.0-beta.2
npm ERR! code EPEERINVALID
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo/npm-debug.log
npm ERR! not ok code 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Amazon DynamoDB Cross Region Replication Library .. SUCCESS [ 1.906 s]
[INFO] Amazon DynamoDB Cross Region Replication Manager .. FAILURE [ 2.936 s]
[INFO] Amazon DynamoDB Cross Region Replication Demo ..... SKIPPED
[INFO] Amazon DynamoDB Cross Region ...................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.983 s
[INFO] Finished at: 2015-02-19T13:28:59-08:00
[INFO] Final Memory: 17M/228M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.trecloux:yeoman-maven-plugin:0.1:build (default) on project dynamodb-cross-region-replication-manager: Error during : npm install: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :dynamodb-cross-region-replication-manager

and here's the npm-debug.log

cat /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo/npm-debug.log

0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'install' ]
2 info using npm@2.0.0-beta.2
3 info using node@v0.10.28
4 verbose node symlink /usr/local/bin/node
5 verbose readDependencies using package.json deps
6 verbose install where, deps [ '/Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo',
6 verbose install [ 'aws-sdk',
6 verbose install 'coffee-script',
6 verbose install 'grunt',
6 verbose install 'grunt-autoprefixer',
6 verbose install 'grunt-bg-shell',
6 verbose install 'grunt-concurrent',
6 verbose install 'grunt-connect-proxy',
6 verbose install 'grunt-contrib-clean',
6 verbose install 'grunt-contrib-compass',
6 verbose install 'grunt-contrib-concat',
6 verbose install 'grunt-contrib-connect',
6 verbose install 'grunt-contrib-copy',
6 verbose install 'grunt-contrib-cssmin',
6 verbose install 'grunt-contrib-htmlmin',
6 verbose install 'grunt-contrib-imagemin',
6 verbose install 'grunt-contrib-jade',
6 verbose install 'grunt-contrib-jshint',
6 verbose install 'grunt-contrib-uglify',
6 verbose install 'grunt-contrib-watch',
6 verbose install 'grunt-curl',
6 verbose install 'grunt-filerev',
6 verbose install 'grunt-google-cdn',
6 verbose install 'grunt-if-missing',
6 verbose install 'grunt-karma',
6 verbose install 'grunt-newer',
6 verbose install 'grunt-ng-annotate',
6 verbose install 'grunt-ng-constant',
6 verbose install 'grunt-svgmin',
6 verbose install 'grunt-tar.gz',
6 verbose install 'grunt-usemin',
6 verbose install 'grunt-wiredep',
6 verbose install 'jshint-stylish',
6 verbose install 'karma',
6 verbose install 'karma-jasmine',
6 verbose install 'karma-ng-html2js-preprocessor',
6 verbose install 'karma-phantomjs-launcher',
6 verbose install 'load-grunt-tasks',
6 verbose install 'nconf',
6 verbose install 'time-grunt' ] ]
7 info preinstall DynamoDBCrossRegionReplicationDashboard@0.1.0
8 verbose readDependencies using package.json deps
9 verbose already installed skipping grunt-concurrent@^0.5.0 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
10 verbose already installed skipping grunt-connect-proxy@^0.1.11 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
11 verbose already installed skipping grunt-contrib-clean@^0.5.0 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
12 verbose already installed skipping grunt-contrib-compass@^0.7.2 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
13 verbose already installed skipping grunt-contrib-concat@^0.4.0 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
14 verbose already installed skipping grunt-contrib-connect@^0.7.1 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
15 verbose already installed skipping grunt-contrib-copy@^0.5.0 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
16 verbose already installed skipping grunt-contrib-cssmin@^0.9.0 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
17 verbose already installed skipping grunt-contrib-htmlmin@^0.3.0 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
18 verbose already installed skipping grunt-contrib-imagemin@^0.7.0 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
19 verbose already installed skipping grunt-contrib-jade@^0.12.0 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
20 verbose already installed skipping grunt-contrib-jshint@^0.10.0 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
21 verbose already installed skipping grunt-contrib-uglify@^0.4.0 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
22 verbose already installed skipping grunt-contrib-watch@^0.6.1 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
23 verbose already installed skipping grunt-curl@^2.0.2 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
24 verbose already installed skipping grunt-filerev@^0.2.1 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
25 verbose already installed skipping grunt-google-cdn@^0.4.0 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
26 verbose already installed skipping grunt-if-missing@^1.0.0 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
27 verbose already installed skipping grunt-karma@~0.8.3 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
28 verbose already installed skipping grunt-newer@^0.7.0 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
29 verbose already installed skipping grunt-ng-annotate@^0.4.0 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
30 verbose already installed skipping grunt-ng-constant@^1.0.0 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
31 verbose already installed skipping grunt-svgmin@^0.4.0 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
32 verbose already installed skipping grunt-tar.gz@0.0.3 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
33 verbose already installed skipping grunt-usemin@^2.1.1 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
34 verbose already installed skipping grunt-wiredep@^1.7.0 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
35 verbose already installed skipping jshint-stylish@^0.2.0 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
36 verbose already installed skipping karma@~0.12.21 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
37 verbose already installed skipping karma-jasmine@^0.2.0 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
38 verbose already installed skipping karma-ng-html2js-preprocessor@^0.1.0 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
39 verbose already installed skipping karma-phantomjs-launcher@~0.1.4 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
40 verbose already installed skipping load-grunt-tasks@^0.4.0 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
41 verbose already installed skipping nconf@^0.6.9 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
42 verbose already installed skipping time-grunt@^0.3.1 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
43 verbose already installed skipping aws-sdk@^2.0.19 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
44 verbose already installed skipping grunt@^0.4.1 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
45 verbose already installed skipping coffee-script@^1.8.0 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
46 verbose already installed skipping grunt-autoprefixer@^0.7.2 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
47 verbose already installed skipping grunt-bg-shell@^2.3.1 /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
48 silly resolved []
49 info build /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
50 verbose linkStuff [ false,
50 verbose linkStuff false,
50 verbose linkStuff false,
50 verbose linkStuff '/Users/mapte/Lab/dynamodb-cross-region-library/replication-manager' ]
51 info linkStuff DynamoDBCrossRegionReplicationDashboard@0.1.0
52 verbose linkBins DynamoDBCrossRegionReplicationDashboard@0.1.0
53 verbose linkMans DynamoDBCrossRegionReplicationDashboard@0.1.0
54 verbose rebuildBundles DynamoDBCrossRegionReplicationDashboard@0.1.0
55 verbose rebuildBundles [ '.bin',
55 verbose rebuildBundles 'aws-sdk',
55 verbose rebuildBundles 'coffee-script',
55 verbose rebuildBundles 'grunt',
55 verbose rebuildBundles 'grunt-autoprefixer',
55 verbose rebuildBundles 'grunt-bg-shell',
55 verbose rebuildBundles 'grunt-concurrent',
55 verbose rebuildBundles 'grunt-connect-proxy',
55 verbose rebuildBundles 'grunt-contrib-clean',
55 verbose rebuildBundles 'grunt-contrib-compass',
55 verbose rebuildBundles 'grunt-contrib-concat',
55 verbose rebuildBundles 'grunt-contrib-connect',
55 verbose rebuildBundles 'grunt-contrib-copy',
55 verbose rebuildBundles 'grunt-contrib-cssmin',
55 verbose rebuildBundles 'grunt-contrib-htmlmin',
55 verbose rebuildBundles 'grunt-contrib-imagemin',
55 verbose rebuildBundles 'grunt-contrib-jade',
55 verbose rebuildBundles 'grunt-contrib-jshint',
55 verbose rebuildBundles 'grunt-contrib-uglify',
55 verbose rebuildBundles 'grunt-contrib-watch',
55 verbose rebuildBundles 'grunt-curl',
55 verbose rebuildBundles 'grunt-filerev',
55 verbose rebuildBundles 'grunt-google-cdn',
55 verbose rebuildBundles 'grunt-if-missing',
55 verbose rebuildBundles 'grunt-karma',
55 verbose rebuildBundles 'grunt-newer',
55 verbose rebuildBundles 'grunt-ng-annotate',
55 verbose rebuildBundles 'grunt-ng-constant',
55 verbose rebuildBundles 'grunt-svgmin',
55 verbose rebuildBundles 'grunt-tar.gz',
55 verbose rebuildBundles 'grunt-usemin',
55 verbose rebuildBundles 'grunt-wiredep',
55 verbose rebuildBundles 'jshint-stylish',
55 verbose rebuildBundles 'karma',
55 verbose rebuildBundles 'karma-jasmine',
55 verbose rebuildBundles 'karma-ng-html2js-preprocessor',
55 verbose rebuildBundles 'karma-phantomjs-launcher',
55 verbose rebuildBundles 'load-grunt-tasks',
55 verbose rebuildBundles 'nconf',
55 verbose rebuildBundles 'time-grunt' ]
56 info install DynamoDBCrossRegionReplicationDashboard@0.1.0
57 info postinstall DynamoDBCrossRegionReplicationDashboard@0.1.0
58 info prepublish DynamoDBCrossRegionReplicationDashboard@0.1.0
59 error peerinvalid The package grunt does not satisfy its siblings' peerDependencies requirements!
59 error peerinvalid Peer grunt-autoprefixer@0.7.2 wants grunt@~0.4.2
59 error peerinvalid Peer grunt-bg-shell@2.3.1 wants grunt@~0.4.0
59 error peerinvalid Peer grunt-concurrent@0.5.0 wants grunt@~0.4.0
59 error peerinvalid Peer grunt-connect-proxy@0.1.11 wants grunt@~0.4.1
59 error peerinvalid Peer grunt-contrib-clean@0.5.0 wants grunt@~0.4.0
59 error peerinvalid Peer grunt-contrib-compass@0.7.2 wants grunt@~0.4.0
59 error peerinvalid Peer grunt-contrib-concat@0.4.0 wants grunt@~0.4.0
59 error peerinvalid Peer grunt-contrib-connect@0.7.1 wants grunt@~0.4.0
59 error peerinvalid Peer grunt-contrib-copy@0.5.0 wants grunt@~0.4.0
59 error peerinvalid Peer grunt-contrib-cssmin@0.9.0 wants grunt@~0.4.1
59 error peerinvalid Peer grunt-contrib-htmlmin@0.3.0 wants grunt@~0.4.0
59 error peerinvalid Peer grunt-contrib-imagemin@0.7.0 wants grunt@^0.4.0
59 error peerinvalid Peer grunt-contrib-jade@0.12.0 wants grunt@~0.4.1
59 error peerinvalid Peer grunt-contrib-jshint@0.10.0 wants grunt@~0.4.0
59 error peerinvalid Peer grunt-contrib-uglify@0.4.0 wants grunt@^0.4.0
59 error peerinvalid Peer grunt-contrib-watch@0.6.1 wants grunt@~0.4.0
59 error peerinvalid Peer grunt-filerev@0.2.1 wants grunt@>=0.4.0
59 error peerinvalid Peer grunt-if-missing@1.0.0 wants grunt@~0.4.1
59 error peerinvalid Peer grunt-karma@0.8.3 wants grunt@0.4.x
59 error peerinvalid Peer grunt-newer@0.7.0 wants grunt@~0.4.1
59 error peerinvalid Peer grunt-ng-annotate@0.4.0 wants grunt@~0.4.1
59 error peerinvalid Peer grunt-ng-constant@1.1.0 wants grunt@~0.4.1
59 error peerinvalid Peer grunt-svgmin@0.4.0 wants grunt@~0.4.0
59 error peerinvalid Peer grunt-tar.gz@0.0.3 wants grunt@~0.4.0
59 error peerinvalid Peer grunt-usemin@2.6.2 wants grunt@>=0.4.0
59 error peerinvalid Peer grunt-wiredep@1.9.0 wants grunt@~0.4.0
60 error System Darwin 13.4.0
61 error command "node" "/usr/local/bin/npm" "install"
62 error cwd /Users/mapte/Lab/dynamodb-cross-region-library/replication-manager/yo
63 error node -v v0.10.28
64 error npm -v 2.0.0-beta.2
65 error code EPEERINVALID
66 verbose exit [ 1, true ]

What is the correct set of dependencies that'll work? I am going to try and just play with the version numbers in order to resolve this issue, but it'll be great if someone takes a look to determine if this is really an issue

As I see in your npm-debug log, the actual error starts at line 59.

59 error peerinvalid The package grunt does not satisfy its siblings' peerDependencies requirements!

It seems this error may happen when you have an incompatible version of the package mentioned installed on your system (grunt in this case). Can you please update/reinstall grunt and try again?

@kentaws so the culprit turned out to be my npm version. I installed the correct version of npm and it worked, thanks for your comment I'm closing this as a non issue

@manasapte Glad to hear it works now! Please let us know if you get any question and/or feedback.