ensure .travis.yml is formatted properly. debug why travis build is not running by going to the requests tab
referenceError: primordials is not defined
Follow the instructions here and here.
TL:DR
-
Gulp 3.* doesn't work on Node 12.* or above. You have to downgrade Node, or upgrade Gulp.
-
You have 3 options:
a. downgrade node using nvm
b. using a npm-shrinkwrap.json
c. after initial
npm install
. first add the following to package.json. [this is the easiest]{ //Your current package.json contents "resolutions": { "graceful-fs": "^4.2.4" } }
then under scripts, add
"preinstall": "npx npm-force-resolutions"
to package.json.Run
npm install
again.This is preferred, and will ensure your app works on heroku, more info here.
Remember to add the following to the top of your .travis.yml.
before_install: npm install -g npx`
-
For options 2b. You should see this message:
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was generated for lockfileVersion@0. I'll try to do my best with it!
if you see this message:
npm WARN ancient lockfile npm WARN ancient lockfile The npm-shrinkwrap.json file was created with an old version of npm, npm WARN ancient lockfile so supplemental metadata must be fetched from the registry. npm WARN ancient lockfile npm WARN ancient lockfile This is a one-time fix-up, please be patient... npm WARN ancient lockfile
it might be a corrupted npm profile folder.
if you get this error: src refspec test-branch does not match any
,
run git push --set-upstream origin test-branch
.
Ensure the version for gulp
in package.json is ^3.9.1
"gulp": "^3.9.1",