Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sequelize [Node: 12.16.1, CLI: 2.7.0, ORM: 3.30.4] fs.js:35 } = primordials; ^ ReferenceError: primordials is not defined #24

Open
hakanonymos opened this issue Mar 5, 2020 · 4 comments

Comments

@hakanonymos
Copy link

remote: Done. Phantomjs binary available at /tmp/build_43a115e50e09530019db796929f807cd/node_modules/phantomjs-p
ebuilt/lib/phantom/bin/phantomjs
remote:
remote: > [email protected] postinstall /tmp/build_43a115e50e09530019db796929f807cd
remote: > run-s migrate build
remote:
remote:
remote: > [email protected] migrate /tmp/build_43a115e50e09530019db796929f807cd
remote: > sequelize db:migrate
remote:
remote:
remote: Sequelize [Node: 12.16.1, CLI: 2.7.0, ORM: 3.30.4]
remote:
remote: fs.js:35
remote: } = primordials;
remote: ^
remote:
remote: ReferenceError: primordials is not defined
remote: at fs.js:35:5
remote: at req_ (/tmp/build_43a115e50e09530019db796929f807cd/node_modules/natives/index.js:143:24)
remote: at Object.req [as require] (/tmp/build_43a115e50e09530019db796929f807cd/node_modules/natives/index.j
:55:10)
remote: at Object. (/tmp/build_43a115e50e09530019db796929f807cd/node_modules/graceful-fs/fs.js:1:
7)
remote: at Module._compile (internal/modules/cjs/loader.js:1158:30)
remote: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
remote: at Module.load (internal/modules/cjs/loader.js:1002:32)
remote: at Function.Module._load (internal/modules/cjs/loader.js:901:14)
remote: at Module.require (internal/modules/cjs/loader.js:1044:19)
remote: at require (internal/modules/cjs/helpers.js:77:18)
remote: npm ERR! code ELIFECYCLE
remote: npm ERR! errno 1
remote: npm ERR! [email protected] migrate: sequelize db:migrate
remote: npm ERR! Exit status 1
remote: npm ERR!
remote: npm ERR! Failed at the [email protected] migrate script.
remote: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
remote:
remote: npm ERR! A complete log of this run can be found in:
remote: npm ERR! /tmp/npmcache.9mEA8/_logs/2020-03-05T02_10_25_421Z-debug.log
remote: ERROR: "migrate" exited with 1.
remote: npm ERR! code ELIFECYCLE
remote: npm ERR! errno 1
remote: npm ERR! [email protected] postinstall: run-s migrate build
remote: npm ERR! Exit status 1
remote: npm ERR!
remote: npm ERR! Failed at the [email protected] postinstall script.
remote: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
remote:
remote: npm ERR! A complete log of this run can be found in:
remote: npm ERR! /tmp/npmcache.9mEA8/_logs/2020-03-05T02_10_25_488Z-debug.log
remote:
remote: -----> Build failed
remote:
remote: We're sorry this build is failing! You can troubleshoot common issues here:
remote: https://devcenter.heroku.com/articles/troubleshooting-node-deploys
remote:
remote: Some possible problems:
remote:
remote: - Node version not specified in package.json
remote: https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
remote:
remote: Love,
remote: Heroku
remote:
remote: ! Push rejected, failed to compile Node.js app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to donivarshop.
remote:
To https://git.heroku.com/donivarshop.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/donivarshop.git'
PS C:\Users\MacBook\Desktop\adobot-master>

I encountered this same problem when I used heroku and when I also tested it in localhost or cpanel, I find the same problem

@adonespitogo
Copy link
Owner

This issue can be easily fixed by updating the package.json dependencies to latest version. I'm open for pull request.

@kundanSingh11
Copy link

Just add the line
"engines": {
"node": "10.18.x"
},
after
"main": "index.js",

@hakanonymos
Copy link
Author

its not working , send me full version with email

@L337C0D3R
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants