Open bipinbitla opened 8 years ago
npm ERR! code EPEERINVALID [ERROR] [ERROR] npm ERR! peerinvalid The package mocha does not satisfy its siblings' peerDependencies requirements!
Try looking at package.json.
Thanks for reply. What exactly would you like me to look at package.json ? Should I update any version of the dependencies? But its was working past year why would it suddenly stop workin ?
It probably stopped working because the node/npm/javascript ecosystem moves quite fast, and not all dependencies may still work. I'm not quite sure.
Try using node and npm directly from the command line:
node --version
npm --version
(make sure that they are the same versions as the maven plugin asks for)
npm install (check if you get the same error here)
i just tried with latest node,npm and version 1 of plugin its giving some other issues like
[ERROR] cc1plus: error: unrecognized command line option "-std=gnu++0x"
Where is the location it says that the maven plugin need what version of node and npm i can try with those versions.
I have this problem too, and npm install works just fine from the command line. I'm using node v4.6.0 both from the command line and from the front end plugin.
If I run the same commands as the front-end plugin ran, I get...
$ /var/tmp/eve-manager/src/main/webapp/node/node /var/tmp/eve-manager/src/main/webapp/node/node_modules/npm/bin/npm-cli.js install npm WARN package.json eve-manager@0.0.1 No repository field. npm WARN package.json eve-manager@0.0.1 No README data npm WARN package.json eve-manager@0.0.1 license should be a valid SPDX license expression npm ERR! Linux 3.13.0-24-generic npm ERR! argv "/var/tmp/eve-manager/src/main/webapp/node/node" "/var/tmp/eve-manager/src/main/webapp/node/node_modules/npm/bin/npm-cli.js" "install" npm ERR! node v4.6.0 npm ERR! npm v2.15.9 npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package grunt@1.0.1 does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer grunt-execute@0.2.2 wants grunt@~0.4.1 npm ERR! peerinvalid Peer grunt-contrib-concat@1.0.1 wants grunt@>=0.4.0 npm ERR! peerinvalid Peer grunt-contrib-jshint@1.1.0 wants grunt@>=0.4.0 npm ERR! peerinvalid Peer grunt-usemin@3.1.1 wants grunt@>=0.4.0 npm ERR! peerinvalid Peer grunt-contrib-clean@1.0.0 wants grunt@>= 0.4.5
npm ERR! Please include the following file with any support request: npm ERR! /var/tmp/eve-manager/src/main/webapp/npm-debug.log
If I use my local node install I get... $ node --version; npm --version v4.6.0 3.10.8
$ npm install npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/karma/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/watchify/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN grunt-execute@0.2.2 requires a peer of grunt@~0.4.1 but none was installed. npm WARN eve-manager@0.0.1 No repository field. npm WARN eve-manager@0.0.1 license should be a valid SPDX license expression
It would seem that the plugin is not working like suggested here... https://docs.npmjs.com/getting-started/installing-node
Putting this in the configuration section of the plugin fixes it. But, ultimately, the plugin should make sure npm is up to date.
<npmVersion>3.10.8</npmVersion>
Hi,
We have been using this plugin for our maven project for almost an year now suddenly we have started seeing below error also all the WARN in below take about 10 to 15 mins to execute. I am not sure what's happening. Can you please help us.
Here is the plugin info I added in my pom.xml
Here is the Error I am getting in jenkins logs:
[INFO] --- frontend-maven-plugin:0.0.28:install-node-and-npm (install node and npm) @ clp-content --- [INFO] Found proxies: [] [INFO] Installing node version v0.12.4 [INFO] Creating temporary directory /var/lib/jenkins/workspace/Condor-Clp-DEV/AEM/condor/clp/content/node_tmp [INFO] Downloading Node.js from https://nodejs.org/dist/v0.12.4/node-v0.12.4-linux-x64.tar.gz to /var/lib/jenkins/workspace/Condor-Clp-DEV/AEM/condor/clp/content/node_tmp/node.tar.gz [INFO] No proxies configured [INFO] No proxy was configured, downloading directly [INFO] Extracting Node.js files in node_tmp [INFO] Unpacking /var/lib/jenkins/workspace/Condor-Clp-DEV/AEM/condor/clp/content/node_tmp/node.tar.gz into /var/lib/jenkins/workspace/Condor-Clp-DEV/AEM/condor/clp/content/node_tmp [INFO] Moving node binary to /var/lib/jenkins/workspace/Condor-Clp-DEV/AEM/condor/clp/content/node/node [INFO] Deleting temporary directory /var/lib/jenkins/workspace/Condor-Clp-DEV/AEM/condor/clp/content/node_tmp [INFO] Installed node locally. [INFO] Installing npm version 2.8.4 [INFO] Downloading NPM from http://registry.npmjs.org/npm/-/npm-2.8.4.tgz to /var/lib/jenkins/workspace/Condor-Clp-DEV/AEM/condor/clp/content/npm.tar.gz [INFO] No proxies configured [INFO] No proxy was configured, downloading directly [INFO] Extracting NPM files in node/ [INFO] Unpacking /var/lib/jenkins/workspace/Condor-Clp-DEV/AEM/condor/clp/content/npm.tar.gz into /var/lib/jenkins/workspace/Condor-Clp-DEV/AEM/condor/clp/content/node/node_modules [INFO] Installed NPM locally. [INFO] [INFO] --- frontend-maven-plugin:0.0.28:npm (npm install) @ clp-content --- [INFO] Found proxies: [] [INFO] Running 'npm install' in /var/lib/jenkins/workspace/Condor-Clp-DEV/AEM/condor/clp/content [ERROR] npm WARN package.json clp-frontend-tools@1.0.0 No repository field. [ERROR] npm WARN package.json clp-frontend-tools@1.0.0 No README data [ERROR] npm WARN peerDependencies The peer dependency mocha@>=1.x.x included from grunt-mocha-istanbul will no [ERROR] npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency [ERROR] npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly. [ERROR] npm WARN peerDependencies The peer dependency istanbul@0.x.x included from grunt-mocha-istanbul will no [ERROR] npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency [ERROR] npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly. [ERROR] npm WARN peerDependencies The peer dependency mocha@>=2 <3.0.0 included from mocha-multi will no [ERROR] npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency [ERROR] npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly. [ERROR] npm WARN peerDependencies The peer dependency mocha@ included from mocha-jsdom will no [ERROR] npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency [ERROR] npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly. [ERROR] npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue [ERROR] npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. [ERROR] npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue [ERROR] npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade [ERROR] npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue [ERROR] npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130 [ERROR] npm WARN deprecated graceful-fs@2.0.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. [INFO] [INFO] > contextify@0.1.15 install /var/lib/jenkins/workspace/Condor-Clp-DEV/AEM/condor/clp/content/node_modules/jsdom/node_modules/contextify [INFO] > node-gyp rebuild [INFO] [INFO] make: Entering directory
/var/lib/jenkins/workspace/Condor-Clp-DEV/AEM/condor/clp/content/node_modules/jsdom/node_modules/contextify/build' [INFO] CXX(target) Release/obj.target/contextify/src/contextify.o [INFO] SOLINK_MODULE(target) Release/obj.target/contextify.node [INFO] SOLINK_MODULE(target) Release/obj.target/contextify.node: Finished [INFO] COPY Release/contextify.node [INFO] make: Leaving directory
/var/lib/jenkins/workspace/Condor-Clp-DEV/AEM/condor/clp/content/node_modules/jsdom/node_modules/contextify/build' [INFO] [INFO] > phantomjs@1.9.20 install /var/lib/jenkins/workspace/Condor-Clp-DEV/AEM/condor/clp/content/node_modules/grunt-blanket-mocha/node_modules/grunt-lib-phantomjs/node_modules/phantomjs [INFO] > node install.js [INFO] [INFO] PhantomJS not found on PATH [INFO] Download already available at /tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2 [INFO] Verified checksum of previously downloaded file [INFO] Extracting tar contents (via spawned process) [INFO] Removing /var/lib/jenkins/workspace/Condor-Clp-DEV/AEM/condor/clp/content/node_modules/grunt-blanket-mocha/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/lib/phantom [INFO] Copying extracted folder /tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2-extract-1470073282266/phantomjs-1.9.8-linux-x86_64 -> /var/lib/jenkins/workspace/Condor-Clp-DEV/AEM/condor/clp/content/node_modules/grunt-blanket-mocha/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/lib/phantom [INFO] Writing location.js file [INFO] Done. Phantomjs binary available at /var/lib/jenkins/workspace/Condor-Clp-DEV/AEM/condor/clp/content/node_modules/grunt-blanket-mocha/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/lib/phantom/bin/phantomjs [ERROR] npm WARN deprecated minimatch@1.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue [ERROR] npm ERR! Linux 2.6.18-274.el5 [ERROR] npm ERR! argv "/var/lib/jenkins/workspace/Condor-Clp-DEV/AEM/condor/clp/content/node/node" "/var/lib/jenkins/workspace/Condor-Clp-DEV/AEM/condor/clp/content/node/node_modules/npm/bin/npm-cli.js" "install" [ERROR] npm ERR! node v0.12.4 [ERROR] npm ERR! npm v2.8.4 [ERROR] npm ERR! code EPEERINVALID [ERROR] [ERROR] npm ERR! peerinvalid The package mocha does not satisfy its siblings' peerDependencies requirements! [ERROR] npm ERR! peerinvalid Peer mocha-jsdom@0.3.0 wants mocha@ [ERROR] npm ERR! peerinvalid Peer grunt-mocha-istanbul@2.4.0 wants mocha@>=1.x.x [ERROR] npm ERR! peerinvalid Peer mocha-multi@0.7.1 wants mocha@>=2 <3.0.0 [ERROR] [ERROR] npm ERR! Please include the following file with any support request: [ERROR] npm ERR! /var/lib/jenkins/workspace/Condor-Clp-DEV/AEM/condor/clp/content/npm-debug.log