App fails to deploy with npm errors
Issue
- Unable to deploy application into studio
- App fails to deploy with an error message:
"npm ERR! code EPEERINVALID"
. - NPM install working locally but it doesn't work into studio
-
When attempting to deploy an application the following message can be seen in the deploy logs:
[stderr] npm ERR! code EPEERINVALID [stderr] [stderr] npm ERR! peerinvalid The package grunt@1.0.1 does not satisfy its siblings' peerDependencies requirements! [stderr] npm ERR! peerinvalid Peer grunt-concurrent@2.3.1 wants grunt@>=0.4.0 [stderr] npm ERR! peerinvalid Peer grunt-contrib-jshint@0.11.3 wants grunt@>=0.4.0 [stderr] npm ERR! peerinvalid Peer grunt-nodemon@0.2.0 wants grunt@~0.4.1 [stderr] npm ERR! peerinvalid Peer grunt-shell@0.7.0 wants grunt@~0.4.0
-
Message
" Failed to deploy app due to error npm install failed"
is shown in the deploy console log.Following an example of this issue.Deploy started for environment dev Performing pre-deploy checks Pre-deploy checks passed Deploy operation scheduled Checking app runtime Runtime is ok. Creating app [stderr] { [Error: Command failed: npm ERR! missing: graphql@^0.5.0-b || ^0.6.0, required by express-graphql@0.5.3 [stderr] npm ERR! not ok code 0 [stderr] ] killed: false, code: 1, signal: null } [stderr] Bad return code from running cmd: fh-npm --npm="/opt/node-v0.10.30-linux-x64/bin/node /opt/node-v0.10.30-linux-x64/bin/npm" --install="install --production --strict-ssl=false --cache=/home/fh/.node010" --cache=/home/fh/.fh-npm-node010 --dir=/home/fh/apps/someenv/src', exiting: 1 Failed to deploy app due to error npm install failed
Environment
- Red Hat Mobile Application Platform - 3.17
- NodeJS
- PeerDependencies
- npm-shrinkwrap
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.