I’ve got a very simple Angular app I’m trying to set up a basic CI flow for but I can’t even get past the NPM install step. It appears as if I can’t get a hold of a docker image with Node > 4.6.x. Anyways, here’s the NPM install console readout
npm install
node-sass4.6.0 install /home/ubuntu/project-nest-webapp/node_modules/angular/cli/node_modules/node-sass
node scripts/install.jsDownloading binary from https://github.com/sass/node-sass/releases/download/v4.6.0/linux-x64-46_binding.node
Download complete
Binary saved to /home/ubuntu/project-nest-webapp/node_modules/angular/cli/node_modules/node-sass/vendor/linux-x64-46/binding.node
Caching binary to /home/ubuntu/.npm/node-sass/4.6.0/linux-x64-46_binding.nodenode-sass-4.6.0 postinstall /home/ubuntu/project-nest-webapp/node_modules/angular/cli/node_modules/node-sass
node scripts/build.jsBinary found at /home/ubuntu/project-nest-webapp/node_modules/angular/cli/node_modules/node-sass/vendor/linux-x64-46/binding.node
Testing binary
Binary is fine
npm ERR! Linux 3.13.0-129-generic
npm ERR! argv “/opt/circleci/nodejs/v4.2.6/bin/node” “/opt/circleci/nodejs/v4.2.6/bin/npm” “install”
npm ERR! node v4.2.6
npm ERR! npm v2.14.12
npm ERR! code EPEERINVALIDnpm ERR! peerinvalid The package angular-devkit/schematics0.0.35 does not satisfy its siblings’ peerDependencies requirements!
npm ERR! peerinvalid Peer schematics/angular0.0.49 wants angular-devkit/schematics0.0.34npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/project-nest-webapp/npm-debug.lognpm install returned exit code 1
Action failed: npm install
And here’s my yaml file
version: 2
jobs:
build:
working_directory: ~/project-nest
docker:
- image: circleci/node:6-browsers
steps:
- checkout
- run:
name: update-npm
command: sudo npm install -g npm@latest
- restore_cache:
key: project-nest-{{ .Branch }}-{{ checksum “package.json” }}
- run:
name: install-dependencies
command: npm install
- save_cache:
key: project-nest-{{ .Branch }}-{{ checksum “package.json” }}
paths:
- ./node_modules
- run:
name: angular-test
command: xvfb-run -a npm run test – --single-run --no-progress --browser=ChromeNoSandbox
Any pointers would be awesome!