devrelometer icon indicating copy to clipboard operation
devrelometer copied to clipboard

gulp ReferenceError: primordials is not defined

Open alberttwong opened this issue 2 years ago • 2 comments

atwong@Alberts-MacBook-Pro devrelometer % npm install -g jspm
npm install -g gulp-cli
npm install
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details
npm WARN deprecated [email protected]: js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details
npm WARN deprecated [email protected]: js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details
npm WARN deprecated [email protected]: js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details
npm WARN deprecated [email protected]: js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details
npm WARN deprecated [email protected]: js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details

changed 307 packages in 13s

31 packages are looking for funding
  run `npm fund` for details
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated

added 268 packages in 8s

10 packages are looking for funding
  run `npm fund` for details
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: This module relies on Node.js's internals and will break at some point. Do not use it, and update to [email protected].
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm WARN deprecated [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.

added 639 packages, and audited 640 packages in 14s

9 packages are looking for funding
  run `npm fund` for details

35 vulnerabilities (1 low, 1 moderate, 24 high, 9 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
atwong@Alberts-MacBook-Pro devrelometer % gulp
ReferenceError: primordials is not defined
    at fs.js:42:5
    at req_ (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/natives/index.js:143:24)
    at Object.req [as require] (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/natives/index.js:55:10)
    at Object.<anonymous> (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/vinyl-fs/node_modules/graceful-fs/fs.js:1:37)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
atwong@Alberts-MacBook-Pro devrelometer %

alberttwong avatar Jun 15 '23 03:06 alberttwong

I tried node 8 and 11 which can get past the gulp error but the widget doesn't show up.

alberttwong avatar Jun 15 '23 03:06 alberttwong

moved back to node 11

atwong@Alberts-MacBook-Pro devrelometer % gulp build-dist
[20:57:07] Using gulpfile ~/sandbox/alberttwong.github.io/devrelometer/gulpfile.js
[20:57:07] Starting 'copy-assets'...
[20:57:07] Finished 'copy-assets' after 61 ms
[20:57:07] Starting 'build-dist'...
gulp-jspm: Error: Error on translate for src/main.js at file:///Users/atwong/sandbox/alberttwong.github.io/devrelometer/src/main.js
	(SystemJS) ENOENT: no such file or directory, open '/Users/atwong/sandbox/alberttwong.github.io/devrelometer/jspm_packages/npm/[email protected]'
	Error: ENOENT: no such file or directory, open '/Users/atwong/sandbox/alberttwong.github.io/devrelometer/jspm_packages/npm/[email protected]'
	Error loading /Users/atwong/sandbox/alberttwong.github.io/devrelometer/jspm_packages/npm/[email protected]
	Unable to load transpiler to transpile /Users/atwong/sandbox/alberttwong.github.io/devrelometer/src/main.js
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/trace.js:496:10
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/trace.js:455:8
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/trace.js:421:6
    at Trace.getLoadRecord (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/trace.js:151:4)
    at Trace.getAllLoadRecords (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/trace.js:647:15)
    at Trace.traceCanonical (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/trace.js:79:15)
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/arithmetic.js:260:33
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/arithmetic.js:249:18
    at Array.reduce (<anonymous>)
    at processExpandedOperations (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/arithmetic.js:248:33)
    at exports.traceExpression (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/arithmetic.js:246:6)
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/builder.js:766:14
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/builder.js:765:6
    at processImmediate (internal/timers.js:443:21)
    at Builder.buildStatic (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/builder.js:760:4)
    at Builder.buildStatic (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/jspm/lib/bundle.js:108:48)
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/jspm/lib/bundle.js:213:26
    at processTicksAndRejections (internal/process/task_queues.js:86:5)
From previous event:
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/trace.js:576:13
From previous event:
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/trace.js:421:6
From previous event:
    at Trace.getLoadRecord (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/trace.js:151:4)
    at Trace.getAllLoadRecords (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/trace.js:647:15)
    at Trace.traceCanonical (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/trace.js:79:15)
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/arithmetic.js:260:33
From previous event:
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/arithmetic.js:249:18
    at Array.reduce (<anonymous>)
    at processExpandedOperations (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/arithmetic.js:248:33)
From previous event:
    at exports.traceExpression (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/arithmetic.js:246:6)
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/builder.js:766:14
From previous event:
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/builder.js:765:6
    at processImmediate (internal/timers.js:443:21)
From previous event:
    at Builder.buildStatic (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/builder.js:760:4)
    at Builder.buildStatic (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/jspm/lib/bundle.js:108:48)
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/jspm/lib/bundle.js:213:26
    at processTicksAndRejections (internal/process/task_queues.js:86:5)

events.js:170
      throw er; // Unhandled 'error' event
      ^
Error: Error on translate for src/main.js at file:///Users/atwong/sandbox/alberttwong.github.io/devrelometer/src/main.js
	(SystemJS) ENOENT: no such file or directory, open '/Users/atwong/sandbox/alberttwong.github.io/devrelometer/jspm_packages/npm/[email protected]'
	Error: ENOENT: no such file or directory, open '/Users/atwong/sandbox/alberttwong.github.io/devrelometer/jspm_packages/npm/[email protected]'
	Error loading /Users/atwong/sandbox/alberttwong.github.io/devrelometer/jspm_packages/npm/[email protected]
	Unable to load transpiler to transpile /Users/atwong/sandbox/alberttwong.github.io/devrelometer/src/main.js
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/trace.js:496:10
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/trace.js:455:8
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/trace.js:421:6
    at Trace.getLoadRecord (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/trace.js:151:4)
    at Trace.getAllLoadRecords (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/trace.js:647:15)
    at Trace.traceCanonical (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/trace.js:79:15)
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/arithmetic.js:260:33
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/arithmetic.js:249:18
    at Array.reduce (<anonymous>)
    at processExpandedOperations (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/arithmetic.js:248:33)
    at exports.traceExpression (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/arithmetic.js:246:6)
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/builder.js:766:14
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/builder.js:765:6
    at processImmediate (internal/timers.js:443:21)
    at Builder.buildStatic (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/builder.js:760:4)
    at Builder.buildStatic (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/jspm/lib/bundle.js:108:48)
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/jspm/lib/bundle.js:213:26
    at processTicksAndRejections (internal/process/task_queues.js:86:5)
From previous event:
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/trace.js:576:13
From previous event:
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/trace.js:421:6
From previous event:
    at Trace.getLoadRecord (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/trace.js:151:4)
    at Trace.getAllLoadRecords (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/trace.js:647:15)
    at Trace.traceCanonical (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/trace.js:79:15)
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/arithmetic.js:260:33
From previous event:
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/arithmetic.js:249:18
    at Array.reduce (<anonymous>)
    at processExpandedOperations (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/arithmetic.js:248:33)
From previous event:
    at exports.traceExpression (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/arithmetic.js:246:6)
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/builder.js:766:14
From previous event:
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/builder.js:765:6
    at processImmediate (internal/timers.js:443:21)
From previous event:
    at Builder.buildStatic (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/systemjs-builder/lib/builder.js:760:4)
    at Builder.buildStatic (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/jspm/lib/bundle.js:108:48)
    at /Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/jspm/lib/bundle.js:213:26
    at processTicksAndRejections (internal/process/task_queues.js:86:5)
Emitted 'error' event at:
    at DestroyableTransform.onerror (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_readable.js:558:12)
    at DestroyableTransform.emit (events.js:193:13)
    at Timeout._onTimeout (/Users/atwong/sandbox/alberttwong.github.io/devrelometer/node_modules/gulp-jspm/index.js:51:22)
    at listOnTimeout (internal/timers.js:535:17)
    at processTimers (internal/timers.js:479:7)

alberttwong avatar Jun 15 '23 03:06 alberttwong