I'm trying to setup my first Bitbucket pipeline which simply builds my application and deploys it to my FTP server using the following bitbucket-pipelines.yml
image: node:6.9.4
pipelines:
default:
- step:
caches:
- node
script:
- npm install
- npm test
- step:
script:
- npm run build
- node deploy.js
The issue lies in the npm install
because when bitbucket tries to run the npm run build
command it says that rimraf
(a npm package) is not found. rimraf
however is listed in my devDependencies
, all regular dependencies
in my package.json
are downloaded correctly.
There is no global variable set by my so the NODE_ENV
could not be it right?