NODE_MODULES Not Pushed

We have a VERY strange issue with our gitlab CI build. Everything works great during build… it deploys over to AWS… but when CodeDeploy goes to unzip the file, the NODE_MODULES are not the NPM packages that are in the package.json. It seems that it is putting a NODE_MODULES in the build that is old or outdated. If i delete the NODE_MODULES directory on the EC2 instance and perform a npm install, everything works perfect.

Has anyone seen this before? This is the build process:

build:
stage: build
variables:
NODE_ENV: test
script:
- npm install
- bower install
- gulp ts-lint
- gulp compile-ts
- gulp copy-html
artifacts:
paths:
- node_modules/
- public/