Build test, all of a sudden not working on one project

I have a basic build test that I use across multiple projects. But all of a sudden it’s no longer working on one of my projects. Any assistance would be appreciated.

version: 2 
jobs: 
  build: 
    working_directory: ~/mern-starter 
    docker: 
      - image: circleci/node:10.14.1 
      - 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
          command: npm install
      - save_cache: 
          key: dependency-cache-{{ checksum "package.json" }}
          paths:
            - ./node_modules
      - run: 
          name: test
          command: npm test
      - store_artifacts: 
          path: test-results.xml
          prefix: tests
      - store_artifacts:
          path: coverage
          prefix: coverage
      - store_test_results:
          path: test-results.xml

Issue Resolved.

npm ERR! 404 Not Found: event-stream@3.3.6

npm removed a vulnerable package event-stream@3.3.6. This caused the error.

Resolved by running npm install and then updating npm via prompt. Lastly run npm update to ensure outdated packages are removed from the package.lock file.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.