title: npm install fails in circle ci (angular cli project)
body: <p>I have created a project in Angular cli. I want to do CI using circle ci. The project is uploaded in Bitbucket and is correctly picked by Circle CI. The build fails though. Following is the config.yml (picked CircleCI's sample.yml and changed it (added ng test). I assume that the package.json created by angularcli earlier would install AngularCLI. </p>
  
  <pre><code>version: 2
  jobs:
    build:
      #working_directory: ~/mern-starter
      # The primary container is an instance of the first list image listed. Your build commands run in this container.
      docker:
        - image: circleci/node:7.10.0
      # The secondary container is an instance of the second listed image which is run in a common network where ports exposed on the primary container are available on localhost.   
        #- image: mongo:3.4.4
      steps:
        - checkout
        - run:
            name: Update npm
            command: 'sudo npm install -g npm@latest'
        - restore_cache:
            key: dependency-cache-{{ checksum "package.json" }}
        - run:
            name: Install npm wee
            command: npm install
        - save_cache:
            key: dependency-cache-{{ checksum "package.json" }}
            paths:
              - node_modules
    test:
      docker:
        - image: circleci/node:7.10.0
        #- image: mongo:3.4.4
      steps:
        - checkout
        - run:
            name: Test
            command: ng test
        #- run:
         #   name: Generate code coverage
          #  command: './node_modules/.bin/nyc report --reporter=text-lcov'
        #- store_artifacts:
         #   path: test-results.xml
          #  prefix: tests
        #- store_artifacts:
         #   path: coverage
          #  prefix: coverage
  
  workflows:
    version: 2
    build_and_test:
      jobs:
        - build
        - test:
            requires:
              - build
            filters:
              branches:
                only: dev
  </code></pre>
  
  <p><strong>Error</strong> </p>
  
  <pre><code>#!/bin/bash -eo pipefail
  npm install
  module.js:472
      throw err;
      ^
  
  Error: Cannot find module 'process-nextick-args'
      at Function.Module._resolveFilename (module.js:470:15)
      at Function.Module._load (module.js:418:25)
      at Module.require (module.js:498:17)
      at require (internal/module.js:20:19)
      at Object.&lt;anonymous&gt; (/usr/local/lib/node_modules/npm/node_modules/readable-stream/lib/_stream_readable.js:26:23)
      at Module._compile (mod
  </code></pre>
  
  <p>I see the following line after <code>npm install</code> step so I suppose process-nexttick-args is already installed. 
  <code>process-nextick-args@1.0.7 node_modules/npm/node_modules/npm-registry-client/node_modules/concat-stream/node_modules/readable-stream/node_modules/process-nextick-arg</code></p>