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

2021: Does not start, ReferenceError: primordials is not defined #3

Open
lbreuss opened this issue Jul 7, 2021 · 0 comments
Open

Comments

@lbreuss
Copy link

lbreuss commented Jul 7, 2021

Hi
currently, it does not start out of the box -- on my system at least. Maybe some dependencies, that need to be updated?

$ npm run dev

> [email protected] dev /home/lbreuss/git/pollly
> NODE_ENV=dev gulp serve

[09:53:27] Failed to load external module @babel/register
[09:53:27] Requiring external module babel-register
fs.js:36
} = primordials;
    ^

ReferenceError: primordials is not defined
    at fs.js:36:5
    at req_ (/home/lbreuss/git/pollly/node_modules/natives/index.js:143:24)
    at Object.req [as require] (/home/lbreuss/git/pollly/node_modules/natives/index.js:55:10)
    at Object.<anonymous> (/home/lbreuss/git/pollly/node_modules/vinyl-fs/node_modules/graceful-fs/fs.js:1:37)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Object.require.extensions.<computed> [as .js] (/home/lbreuss/git/pollly/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `NODE_ENV=dev gulp serve`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

debug.log

$ less /home/lbreuss/.npm/_logs/2021-07-07T07_53_27_612Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   '/home/lbreuss/.nvm/versions/node/v12.22.1/bin/node',
1 verbose cli   '/home/lbreuss/.nvm/versions/node/v12.22.1/bin/npm',
1 verbose cli   'run',
1 verbose cli   'dev'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle [email protected]~predev: [email protected]
6 info lifecycle [email protected]~dev: [email protected]
7 verbose lifecycle [email protected]~dev: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~dev: PATH: /home/lbreuss/.nvm/versions/node/v12.22.1/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/lbreuss/git/pollly/node_modules/.bin:/home/lbreuss/.nvm/versions/node/v12.22.1/bin:/home/lbreuss/.krew/bin:/home/lbreuss/docker-tools/.venv/bin:/home/lbreuss/data-integration:/opt/idea-IC/bin:/home/lbreuss/.local/bin:/home/lbreuss/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/oracle/instantclient:/opt/oracle/instantclient:/home/lbreuss/.cargo/bin:/home/lbreuss/dtools
9 verbose lifecycle [email protected]~dev: CWD: /home/lbreuss/git/pollly
10 silly lifecycle [email protected]~dev: Args: [ '-c', 'NODE_ENV=dev gulp serve' ]
11 silly lifecycle [email protected]~dev: Returned: code: 1  signal: null
12 info lifecycle [email protected]~dev: Failed to exec dev script
13 verbose stack Error: [email protected] dev: `NODE_ENV=dev gulp serve`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/home/lbreuss/.nvm/versions/node/v12.22.1/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack     at EventEmitter.emit (events.js:314:20)
13 verbose stack     at ChildProcess.<anonymous> (/home/lbreuss/.nvm/versions/node/v12.22.1/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:314:20)
13 verbose stack     at maybeClose (internal/child_process.js:1022:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
14 verbose pkgid [email protected]
15 verbose cwd /home/lbreuss/git/pollly
16 verbose Linux 5.4.0-77-generic
17 verbose argv "/home/lbreuss/.nvm/versions/node/v12.22.1/bin/node" "/home/lbreuss/.nvm/versions/node/v12.22.1/bin/npm" "run" "dev"
18 verbose node v12.22.1
19 verbose npm  v6.14.12
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] dev: `NODE_ENV=dev gulp serve`
22 error Exit status 1
23 error Failed at the [email protected] dev script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
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

1 participant