laverdet / isolated-vm

Secure & isolated JS environments for nodejs
ISC License
2.16k stars 152 forks source link

install fails on ubuntu 22.04 node 18.7.0 gcc 11.2.0 #319

Closed joshxyzhimself closed 2 years ago

joshxyzhimself commented 2 years ago
sudo apt install python3 g++ build-essential -y
npm install isolated-vm
0 verbose cli /snap/node/6553/bin/node /snap/node/6553/bin/npm
1 info using npm@8.15.0
2 info using node@v18.7.0
3 timing npm:load:whichnode Completed in 1ms
4 timing config:load:defaults Completed in 2ms
5 timing config:load:file:/snap/node/6553/lib/node_modules/npm/npmrc Completed in 1ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:/home/user/Documents/jxyz/.npmrc Completed in 0ms
10 timing config:load:project Completed in 13ms
11 timing config:load:file:/home/user/.npmrc Completed in 0ms
12 timing config:load:user Completed in 1ms
13 timing config:load:file:/snap/node/6553/etc/npmrc Completed in 1ms
14 timing config:load:global Completed in 1ms
15 timing config:load:validate Completed in 1ms
16 timing config:load:credentials Completed in 1ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 24ms
19 timing npm:load:configload Completed in 24ms
20 timing npm:load:mkdirpcache Completed in 1ms
21 timing npm:load:mkdirplogs Completed in 1ms
22 verbose title npm install isolated-vm
23 verbose argv "install" "isolated-vm"
24 timing npm:load:setTitle Completed in 1ms
25 timing config:load:flatten Completed in 3ms
26 timing npm:load:display Completed in 5ms
27 verbose logfile logs-max:10 dir:/home/user/.npm/_logs
28 verbose logfile /home/user/.npm/_logs/2022-08-05T23_57_38_436Z-debug-0.log
29 timing npm:load:logFile Completed in 5ms
30 timing npm:load:timers Completed in 0ms
31 timing npm:load:configScope Completed in 0ms
32 timing npm:load Completed in 39ms
33 timing arborist:ctor Completed in 1ms
34 silly logfile start cleaning logs, removing 1 files
35 silly logfile done cleaning log files
36 timing idealTree:init Completed in 447ms
37 timing idealTree:userRequests Completed in 7ms
38 silly idealTree buildDeps
39 silly fetch manifest isolated-vm@*
40 verbose shrinkwrap failed to load node_modules/.package-lock.json out of date, updated: node_modules
41 http fetch GET 200 https://registry.npmjs.org/isolated-vm 443ms (cache hit)
42 silly placeDep ROOT isolated-vm@4.4.1 OK for: jxyz@0.0.0 want: *
43 timing idealTree:#root Completed in 455ms
44 timing idealTree:node_modules/isolated-vm Completed in 0ms
45 timing idealTree:buildDeps Completed in 456ms
46 timing idealTree:fixDepFlags Completed in 8ms
47 timing idealTree Completed in 932ms
48 timing reify:loadTrees Completed in 956ms
49 timing reify:diffTrees Completed in 15ms
50 silly reify moves {}
51 timing reify:retireShallow Completed in 1ms
52 timing reify:createSparse Completed in 8ms
53 timing reify:loadBundles Completed in 0ms
54 silly audit bulk request {
54 silly audit   '@aws-crypto/crc32': [ '2.0.0' ],
54 silly audit   tslib: [ '1.14.1', '2.4.0' ],
54 silly audit   '@aws-crypto/crc32c': [ '2.0.0' ],
54 silly audit   '@aws-crypto/ie11-detection': [ '2.0.0' ],
54 silly audit   '@aws-crypto/sha1-browser': [ '2.0.0' ],
54 silly audit   '@aws-crypto/sha256-browser': [ '2.0.0' ],
54 silly audit   '@aws-crypto/sha256-js': [ '2.0.0' ],
54 silly audit   '@aws-crypto/supports-web-crypto': [ '2.0.0' ],
54 silly audit   '@aws-crypto/util': [ '2.0.1' ],
54 silly audit   '@aws-sdk/abort-controller': [ '3.127.0' ],
54 silly audit   '@aws-sdk/chunked-blob-reader': [ '3.55.0' ],
54 silly audit   '@aws-sdk/chunked-blob-reader-native': [ '3.109.0' ],
54 silly audit   '@aws-sdk/client-s3': [ '3.142.0' ],
54 silly audit   '@aws-sdk/client-sso': [ '3.142.0' ],
54 silly audit   '@aws-sdk/client-sts': [ '3.142.0' ],
54 silly audit   '@aws-sdk/config-resolver': [ '3.130.0' ],
54 silly audit   '@aws-sdk/credential-provider-env': [ '3.127.0' ],
54 silly audit   '@aws-sdk/credential-provider-imds': [ '3.127.0' ],
54 silly audit   '@aws-sdk/credential-provider-ini': [ '3.142.0' ],
54 silly audit   '@aws-sdk/credential-provider-node': [ '3.142.0' ],
54 silly audit   '@aws-sdk/credential-provider-process': [ '3.127.0' ],
54 silly audit   '@aws-sdk/credential-provider-sso': [ '3.142.0' ],
54 silly audit   '@aws-sdk/credential-provider-web-identity': [ '3.127.0' ],
54 silly audit   '@aws-sdk/eventstream-codec': [ '3.127.0' ],
54 silly audit   '@aws-sdk/eventstream-serde-browser': [ '3.127.0' ],
54 silly audit   '@aws-sdk/eventstream-serde-config-resolver': [ '3.127.0' ],
54 silly audit   '@aws-sdk/eventstream-serde-node': [ '3.127.0' ],
54 silly audit   '@aws-sdk/eventstream-serde-universal': [ '3.127.0' ],
54 silly audit   '@aws-sdk/fetch-http-handler': [ '3.131.0' ],
54 silly audit   '@aws-sdk/hash-blob-browser': [ '3.127.0' ],
54 silly audit   '@aws-sdk/hash-node': [ '3.127.0' ],
54 silly audit   '@aws-sdk/hash-stream-node': [ '3.127.0' ],
54 silly audit   '@aws-sdk/invalid-dependency': [ '3.127.0' ],
54 silly audit   '@aws-sdk/is-array-buffer': [ '3.55.0' ],
54 silly audit   '@aws-sdk/md5-js': [ '3.127.0' ],
54 silly audit   '@aws-sdk/middleware-bucket-endpoint': [ '3.127.0' ],
54 silly audit   '@aws-sdk/middleware-content-length': [ '3.127.0' ],
54 silly audit   '@aws-sdk/middleware-expect-continue': [ '3.127.0' ],
54 silly audit   '@aws-sdk/middleware-flexible-checksums': [ '3.127.0' ],
54 silly audit   '@aws-sdk/middleware-host-header': [ '3.127.0' ],
54 silly audit   '@aws-sdk/middleware-location-constraint': [ '3.127.0' ],
54 silly audit   '@aws-sdk/middleware-logger': [ '3.127.0' ],
54 silly audit   '@aws-sdk/middleware-recursion-detection': [ '3.127.0' ],
54 silly audit   '@aws-sdk/middleware-retry': [ '3.127.0' ],
54 silly audit   '@aws-sdk/middleware-sdk-s3': [ '3.127.0' ],
54 silly audit   '@aws-sdk/middleware-sdk-sts': [ '3.130.0' ],
54 silly audit   '@aws-sdk/middleware-serde': [ '3.127.0' ],
54 silly audit   '@aws-sdk/middleware-signing': [ '3.130.0' ],
54 silly audit   '@aws-sdk/middleware-ssec': [ '3.127.0' ],
54 silly audit   '@aws-sdk/middleware-stack': [ '3.127.0' ],
54 silly audit   '@aws-sdk/middleware-user-agent': [ '3.127.0' ],
54 silly audit   '@aws-sdk/node-config-provider': [ '3.127.0' ],
54 silly audit   '@aws-sdk/node-http-handler': [ '3.127.0' ],
54 silly audit   '@aws-sdk/property-provider': [ '3.127.0' ],
54 silly audit   '@aws-sdk/protocol-http': [ '3.127.0' ],
54 silly audit   '@aws-sdk/querystring-builder': [ '3.127.0' ],
54 silly audit   '@aws-sdk/querystring-parser': [ '3.127.0' ],
54 silly audit   '@aws-sdk/service-error-classification': [ '3.127.0' ],
54 silly audit   '@aws-sdk/shared-ini-file-loader': [ '3.127.0' ],
54 silly audit   '@aws-sdk/signature-v4': [ '3.130.0' ],
54 silly audit   '@aws-sdk/signature-v4-multi-region': [ '3.130.0' ],
54 silly audit   '@aws-sdk/smithy-client': [ '3.142.0' ],
54 silly audit   '@aws-sdk/types': [ '3.127.0' ],
54 silly audit   '@aws-sdk/url-parser': [ '3.127.0' ],
54 silly audit   '@aws-sdk/util-arn-parser': [ '3.55.0' ],
54 silly audit   '@aws-sdk/util-base64-browser': [ '3.109.0' ],
54 silly audit   '@aws-sdk/util-base64-node': [ '3.55.0' ],
54 silly audit   '@aws-sdk/util-body-length-browser': [ '3.55.0' ],
54 silly audit   '@aws-sdk/util-body-length-node': [ '3.55.0' ],
54 silly audit   '@aws-sdk/util-buffer-from': [ '3.55.0' ],
54 silly audit   '@aws-sdk/util-config-provider': [ '3.109.0' ],
54 silly audit   '@aws-sdk/util-defaults-mode-browser': [ '3.142.0' ],
54 silly audit   '@aws-sdk/util-defaults-mode-node': [ '3.142.0' ],
54 silly audit   '@aws-sdk/util-hex-encoding': [ '3.109.0' ],
54 silly audit   '@aws-sdk/util-locate-window': [ '3.55.0' ],
54 silly audit   '@aws-sdk/util-middleware': [ '3.127.0' ],
54 silly audit   '@aws-sdk/util-stream-browser': [ '3.131.0' ],
54 silly audit   '@aws-sdk/util-stream-node': [ '3.129.0' ],
54 silly audit   '@aws-sdk/util-uri-escape': [ '3.55.0' ],
54 silly audit   '@aws-sdk/util-user-agent-browser': [ '3.127.0' ],
54 silly audit   '@aws-sdk/util-user-agent-node': [ '3.127.0' ],
54 silly audit   '@aws-sdk/util-utf8-browser': [ '3.109.0' ],
54 silly audit   '@aws-sdk/util-utf8-node': [ '3.109.0' ],
54 silly audit   '@aws-sdk/util-waiter': [ '3.127.0' ],
54 silly audit   '@aws-sdk/xml-builder': [ '3.142.0' ],
54 silly audit   '@esbuild/linux-loong64': [ '0.14.53' ],
54 silly audit   '@eslint/eslintrc': [ '1.3.0' ],
54 silly audit   '@fontsource/inter': [ '4.5.11' ],
54 silly audit   '@fontsource/ubuntu': [ '4.5.10' ],
54 silly audit   '@fontsource/ubuntu-mono': [ '4.5.10' ],
54 silly audit   '@grammyjs/types': [ '2.7.1' ],
54 silly audit   '@heroicons/react': [ '1.0.6' ],
54 silly audit   '@humanwhocodes/config-array': [ '0.10.4' ],
54 silly audit   '@humanwhocodes/gitignore-to-minimatch': [ '1.0.2' ],
54 silly audit   '@humanwhocodes/object-schema': [ '1.2.1' ],
54 silly audit   '@nodelib/fs.scandir': [ '2.1.5' ],
54 silly audit   '@nodelib/fs.stat': [ '2.0.5' ],
54 silly audit   '@nodelib/fs.walk': [ '1.2.8' ],
54 silly audit   '@trysound/sax': [ '0.2.0' ],
54 silly audit   acorn: [ '8.8.0', '7.4.1' ],
54 silly audit   'acorn-jsx': [ '5.3.2' ],
54 silly audit   'acorn-node': [ '1.8.2' ],
54 silly audit   'acorn-walk': [ '7.2.0' ],
54 silly audit   ajv: [ '6.12.6' ],
54 silly audit   'ansi-regex': [ '5.0.1' ],
54 silly audit   'ansi-styles': [ '4.3.0' ],
54 silly audit   anymatch: [ '3.1.2' ],
54 silly audit   arg: [ '5.0.2' ],
54 silly audit   argparse: [ '2.0.1' ],
54 silly audit   'array-includes': [ '3.1.5' ],
54 silly audit   'array-union': [ '2.1.0' ],
54 silly audit   'array.prototype.flatmap': [ '1.3.0' ],
54 silly audit   autoprefixer: [ '10.4.8' ],
54 silly audit   'balanced-match': [ '1.0.2' ],
54 silly audit   'base64-js': [ '1.5.1' ],
54 silly audit   'binary-extensions': [ '2.2.0' ],
54 silly audit   bl: [ '4.1.0' ],
54 silly audit   boolbase: [ '1.0.0' ],
54 silly audit   bowser: [ '2.11.0' ],
54 silly audit   'brace-expansion': [ '1.1.11' ],
54 silly audit   braces: [ '3.0.2' ],
54 silly audit   browserslist: [ '4.21.3' ],
54 silly audit   buffer: [ '5.7.1' ],
54 silly audit   'call-bind': [ '1.0.2' ],
54 silly audit   callsites: [ '3.1.0' ],
54 silly audit   'camelcase-css': [ '2.0.1' ],
54 silly audit   'caniuse-api': [ '3.0.0' ],
54 silly audit   'caniuse-lite': [ '1.0.30001374' ],
54 silly audit   chalk: [ '4.1.2' ],
54 silly audit   chokidar: [ '3.5.3' ],
54 silly audit   'glob-parent': [ '5.1.2', '6.0.2' ],
54 silly audit   chownr: [ '1.1.4' ],
54 silly audit   cliui: [ '7.0.4' ],
54 silly audit   color: [ '4.2.3' ],
54 silly audit   'color-convert': [ '2.0.1' ],
54 silly audit   'color-name': [ '1.1.4' ],
54 silly audit   'color-string': [ '1.9.1' ],
54 silly audit   colord: [ '2.9.2' ],
54 silly audit   commander: [ '7.2.0' ],
54 silly audit   'concat-map': [ '0.0.1' ],
54 silly audit   cookie: [ '0.5.0' ],
54 silly audit   'cross-spawn': [ '7.0.3' ],
54 silly audit   'css-declaration-sorter': [ '6.3.0' ],
54 silly audit   'css-select': [ '4.3.0' ],
54 silly audit   'css-tree': [ '1.1.3' ],
54 silly audit   'css-what': [ '6.1.0' ],
54 silly audit   cssesc: [ '3.0.0' ],
54 silly audit   cssnano: [ '5.1.12' ],
54 silly audit   'cssnano-preset-default': [ '5.2.12' ],
54 silly audit   'cssnano-utils': [ '3.1.0' ],
54 silly audit   csso: [ '4.2.0' ],
54 silly audit   'data-uri-to-buffer': [ '4.0.0' ],
54 silly audit   debug: [ '4.3.4' ],
54 silly audit   'decompress-response': [ '6.0.0' ],
54 silly audit   'deep-extend': [ '0.6.0' ],
54 silly audit   'deep-is': [ '0.1.4' ],
54 silly audit   'define-properties': [ '1.1.4' ],
54 silly audit   defined: [ '1.0.0' ],
54 silly audit   'dependency-graph': [ '0.11.0' ],
54 silly audit   'detect-libc': [ '2.0.1' ],
54 silly audit   detective: [ '5.2.1' ],
54 silly audit   didyoumean: [ '1.2.2' ],
54 silly audit   'dir-glob': [ '3.0.1' ],
54 silly audit   dlv: [ '1.1.3' ],
54 silly audit   doctrine: [ '3.0.0', '2.1.0' ],
54 silly audit   'dom-serializer': [ '1.4.1' ],
54 silly audit   domelementtype: [ '2.3.0' ],
54 silly audit   domhandler: [ '4.3.1' ],
54 silly audit   domutils: [ '2.8.0' ],
54 silly audit   'electron-to-chromium': [ '1.4.211' ],
54 silly audit   'emoji-regex': [ '8.0.0' ],
54 silly audit   'end-of-stream': [ '1.4.4' ],
54 silly audit   entities: [ '2.2.0' ],
54 silly audit   'es-abstract': [ '1.20.1' ],
54 silly audit   'es-shim-unscopables': [ '1.0.0' ],
54 silly audit   'es-to-primitive': [ '1.2.1' ],
54 silly audit   esbuild: [ '0.14.53' ],
54 silly audit   'esbuild-android-64': [ '0.14.53' ],
54 silly audit   'esbuild-android-arm64': [ '0.14.53' ],
54 silly audit   'esbuild-darwin-64': [ '0.14.53' ],
54 silly audit   'esbuild-darwin-arm64': [ '0.14.53' ],
54 silly audit   'esbuild-freebsd-64': [ '0.14.53' ],
54 silly audit   'esbuild-freebsd-arm64': [ '0.14.53' ],
54 silly audit   'esbuild-linux-32': [ '0.14.53' ],
54 silly audit   'esbuild-linux-64': [ '0.14.53' ],
54 silly audit   'esbuild-linux-arm': [ '0.14.53' ],
54 silly audit   'esbuild-linux-arm64': [ '0.14.53' ],
54 silly audit   'esbuild-linux-mips64le': [ '0.14.53' ],
54 silly audit   'esbuild-linux-ppc64le': [ '0.14.53' ],
54 silly audit   'esbuild-linux-riscv64': [ '0.14.53' ],
54 silly audit   'esbuild-linux-s390x': [ '0.14.53' ],
54 silly audit   'esbuild-netbsd-64': [ '0.14.53' ],
54 silly audit   'esbuild-openbsd-64': [ '0.14.53' ],
54 silly audit   'esbuild-sunos-64': [ '0.14.53' ],
54 silly audit   'esbuild-windows-32': [ '0.14.53' ],
54 silly audit   'esbuild-windows-64': [ '0.14.53' ],
54 silly audit   'esbuild-windows-arm64': [ '0.14.53' ],
54 silly audit   escalade: [ '3.1.1' ],
54 silly audit   'escape-string-regexp': [ '4.0.0' ],
54 silly audit   eslint: [ '8.21.0' ],
54 silly audit   'eslint-plugin-react': [ '7.30.1' ],
54 silly audit   'eslint-plugin-react-hooks': [ '4.6.0' ],
54 silly audit   'eslint-scope': [ '7.1.1' ],
54 silly audit   'eslint-utils': [ '3.0.0' ],
54 silly audit   'eslint-visitor-keys': [ '2.1.0', '3.3.0' ],
54 silly audit   espree: [ '9.3.3' ],
54 silly audit   esquery: [ '1.4.0' ],
54 silly audit   esrecurse: [ '4.3.0' ],
54 silly audit   estraverse: [ '5.3.0' ],
54 silly audit   esutils: [ '2.0.3' ],
54 silly audit   'expand-template': [ '2.0.3' ],
54 silly audit   'fast-deep-equal': [ '3.1.3' ],
54 silly audit   'fast-glob': [ '3.2.11' ],
54 silly audit   'fast-json-stable-stringify': [ '2.1.0' ],
54 silly audit   'fast-levenshtein': [ '2.0.6' ],
54 silly audit   'fast-xml-parser': [ '3.19.0' ],
54 silly audit   fastq: [ '1.13.0' ],
54 silly audit   'fetch-blob': [ '3.2.0' ],
54 silly audit   'file-entry-cache': [ '6.0.1' ],
54 silly audit   'fill-range': [ '7.0.1' ],
54 silly audit   'find-up': [ '5.0.0' ],
54 silly audit   'flat-cache': [ '3.0.4' ],
54 silly audit   flatted: [ '3.2.6' ],
54 silly audit   'formdata-polyfill': [ '4.0.10' ],
54 silly audit   'fraction.js': [ '4.2.0' ],
54 silly audit   'fs-constants': [ '1.0.0' ],
54 silly audit   'fs-extra': [ '10.1.0' ],
54 silly audit   'fs.realpath': [ '1.0.0' ],
54 silly audit   fsevents: [ '2.3.2' ],
54 silly audit   'function-bind': [ '1.1.1' ],
54 silly audit   'function.prototype.name': [ '1.1.5' ],
54 silly audit   'functional-red-black-tree': [ '1.0.1' ],
54 silly audit   'functions-have-names': [ '1.2.3' ],
54 silly audit   'get-caller-file': [ '2.0.5' ],
54 silly audit   'get-intrinsic': [ '1.1.2' ],
54 silly audit   'get-stdin': [ '9.0.0' ],
54 silly audit   'get-symbol-description': [ '1.0.0' ],
54 silly audit   'github-from-package': [ '0.0.0' ],
54 silly audit   glob: [ '7.2.3' ],
54 silly audit   globals: [ '13.17.0' ],
54 silly audit   globby: [ '11.1.0', '13.1.2' ],
54 silly audit   'graceful-fs': [ '4.2.10' ],
54 silly audit   'grapheme-splitter': [ '1.0.4' ],
54 silly audit   has: [ '1.0.3' ],
54 silly audit   'has-bigints': [ '1.0.2' ],
54 silly audit   'has-flag': [ '4.0.0' ],
54 silly audit   'has-property-descriptors': [ '1.0.0' ],
54 silly audit   'has-symbols': [ '1.0.3' ],
54 silly audit   'has-tostringtag': [ '1.0.0' ],
54 silly audit   ieee754: [ '1.2.1' ],
54 silly audit   ignore: [ '5.2.0' ],
54 silly audit   'import-fresh': [ '3.3.0' ],
54 silly audit   imurmurhash: [ '0.1.4' ],
54 silly audit   inflight: [ '1.0.6' ],
54 silly audit   inherits: [ '2.0.4' ],
54 silly audit   ini: [ '1.3.8' ],
54 silly audit   'internal-slot': [ '1.0.3' ],
54 silly audit   'is-arrayish': [ '0.3.2' ],
54 silly audit   'is-bigint': [ '1.0.4' ],
54 silly audit   'is-binary-path': [ '2.1.0' ],
54 silly audit   'is-boolean-object': [ '1.1.2' ],
54 silly audit   'is-callable': [ '1.2.4' ],
54 silly audit   'is-core-module': [ '2.10.0' ],
54 silly audit   'is-date-object': [ '1.0.5' ],
54 silly audit   'is-extglob': [ '2.1.1' ],
54 silly audit   'is-fullwidth-code-point': [ '3.0.0' ],
54 silly audit   'is-glob': [ '4.0.3' ],
54 silly audit   'is-negative-zero': [ '2.0.2' ],
54 silly audit   'is-number': [ '7.0.0' ],
54 silly audit   'is-number-object': [ '1.0.7' ],
54 silly audit   'is-regex': [ '1.1.4' ],
54 silly audit   'is-shared-array-buffer': [ '1.0.2' ],
54 silly audit   'is-string': [ '1.0.7' ],
54 silly audit   'is-symbol': [ '1.0.4' ],
54 silly audit   'is-weakref': [ '1.0.2' ],
54 silly audit   isexe: [ '2.0.0' ],
54 silly audit   'js-tokens': [ '4.0.0' ],
54 silly audit   'js-yaml': [ '4.1.0' ],
54 silly audit   'json-schema-traverse': [ '0.4.1' ],
54 silly audit   'json-stable-stringify-without-jsonify': [ '1.0.1' ],
54 silly audit   jsonfile: [ '6.1.0' ],
54 silly audit   'jsx-ast-utils': [ '3.3.2' ],
54 silly audit   levn: [ '0.4.1' ],
54 silly audit   lilconfig: [ '2.0.6' ],
54 silly audit   'locate-path': [ '6.0.0' ],
54 silly audit   lodash: [ '4.17.21' ],
54 silly audit   'lodash.memoize': [ '4.1.2' ],
54 silly audit   'lodash.merge': [ '4.6.2' ],
54 silly audit   'lodash.uniq': [ '4.5.0' ],
54 silly audit   'loose-envify': [ '1.4.0' ],
54 silly audit   'lru-cache': [ '6.0.0' ],
54 silly audit   luxon: [ '3.0.1' ],
54 silly audit   'mdn-data': [ '2.0.14' ],
54 silly audit   merge2: [ '1.4.1' ],
54 silly audit   micromatch: [ '4.0.5' ],
54 silly audit   'mime-db': [ '1.52.0' ],
54 silly audit   'mime-types': [ '2.1.35' ],
54 silly audit   'mimic-response': [ '3.1.0' ],
54 silly audit   minimatch: [ '3.1.2' ],
54 silly audit   minimist: [ '1.2.6' ],
54 silly audit   'mkdirp-classic': [ '0.5.3' ],
54 silly audit   modules: [ '1.16.1' ],
54 silly audit   ms: [ '2.1.2' ],
54 silly audit   nanoid: [ '3.3.4' ],
54 silly audit   'napi-build-utils': [ '1.0.2' ],
54 silly audit   'natural-compare': [ '1.4.0' ],
54 silly audit   'node-abi': [ '3.24.0' ],
54 silly audit   semver: [ '7.3.7', '6.3.0' ],
54 silly audit   'node-addon-api': [ '5.0.0' ],
54 silly audit   'node-domexception': [ '1.0.0' ],
54 silly audit   'node-fetch': [ '3.2.10' ],
54 silly audit   'node-releases': [ '2.0.6' ],
54 silly audit   'normalize-path': [ '3.0.0' ],
54 silly audit   'normalize-range': [ '0.1.2' ],
54 silly audit   'normalize-url': [ '6.1.0' ],
54 silly audit   'nth-check': [ '2.1.1' ],
54 silly audit   'object-assign': [ '4.1.1' ],
54 silly audit   'object-hash': [ '3.0.0' ],
54 silly audit   'object-inspect': [ '1.12.2' ],
54 silly audit   'object-keys': [ '1.1.1' ],
54 silly audit   'object.assign': [ '4.1.2' ],
54 silly audit   'object.entries': [ '1.1.5' ],
54 silly audit   'object.fromentries': [ '2.0.5' ],
54 silly audit   'object.hasown': [ '1.1.1' ],
54 silly audit   'object.values': [ '1.1.5' ],
54 silly audit   once: [ '1.4.0' ],
54 silly audit   optionator: [ '0.9.1' ],
54 silly audit   'p-limit': [ '3.1.0' ],
54 silly audit   'p-locate': [ '5.0.0' ],
54 silly audit   'parent-module': [ '1.0.1' ],
54 silly audit   'path-exists': [ '4.0.0' ],
54 silly audit   'path-is-absolute': [ '1.0.1' ],
54 silly audit   'path-key': [ '3.1.1' ],
54 silly audit   'path-parse': [ '1.0.7' ],
54 silly audit   'path-type': [ '4.0.0' ],
54 silly audit   picocolors: [ '1.0.0' ],
54 silly audit   picomatch: [ '2.3.1' ],
54 silly audit   pify: [ '2.3.0' ],
54 silly audit   postcss: [ '8.4.14' ],
54 silly audit   'postcss-calc': [ '8.2.4' ],
54 silly audit   'postcss-cli': [ '10.0.0' ],
54 silly audit   slash: [ '4.0.0', '3.0.0' ],
54 silly audit   'postcss-colormin': [ '5.3.0' ],
54 silly audit   'postcss-convert-values': [ '5.1.2' ],
54 silly audit   'postcss-discard-comments': [ '5.1.2' ],
54 silly audit   'postcss-discard-duplicates': [ '5.1.0' ],
54 silly audit   'postcss-discard-empty': [ '5.1.1' ],
54 silly audit   'postcss-discard-overridden': [ '5.1.0' ],
54 silly audit   'postcss-import': [ '14.1.0' ],
54 silly audit   resolve: [ '1.22.1', '2.0.0-next.4' ],
54 silly audit   'postcss-js': [ '4.0.0' ],
54 silly audit   'postcss-load-config': [ '4.0.1', '3.1.4' ],
54 silly audit   yaml: [ '2.1.1', '1.10.2' ],
54 silly audit   'postcss-merge-longhand': [ '5.1.6' ],
54 silly audit   'postcss-merge-rules': [ '5.1.2' ],
54 silly audit   'postcss-minify-font-values': [ '5.1.0' ],
54 silly audit   'postcss-minify-gradients': [ '5.1.1' ],
54 silly audit   'postcss-minify-params': [ '5.1.3' ],
54 silly audit   'postcss-minify-selectors': [ '5.2.1' ],
54 silly audit   'postcss-nested': [ '5.0.6' ],
54 silly audit   'postcss-normalize-charset': [ '5.1.0' ],
54 silly audit   'postcss-normalize-display-values': [ '5.1.0' ],
54 silly audit   'postcss-normalize-positions': [ '5.1.1' ],
54 silly audit   'postcss-normalize-repeat-style': [ '5.1.1' ],
54 silly audit   'postcss-normalize-string': [ '5.1.0' ],
54 silly audit   'postcss-normalize-timing-functions': [ '5.1.0' ],
54 silly audit   'postcss-normalize-unicode': [ '5.1.0' ],
54 silly audit   'postcss-normalize-url': [ '5.1.0' ],
54 silly audit   'postcss-normalize-whitespace': [ '5.1.1' ],
54 silly audit   'postcss-ordered-values': [ '5.1.3' ],
54 silly audit   'postcss-reduce-initial': [ '5.1.0' ],
54 silly audit   'postcss-reduce-transforms': [ '5.1.0' ],
54 silly audit   'postcss-reporter': [ '7.0.5' ],
54 silly audit   'postcss-selector-parser': [ '6.0.10' ],
54 silly audit   'postcss-svgo': [ '5.1.0' ],
54 silly audit   'postcss-unique-selectors': [ '5.1.1' ],
54 silly audit   'postcss-value-parser': [ '4.2.0' ],
54 silly audit   postgres: [ '3.2.4' ],
54 silly audit   'prebuild-install': [ '7.1.1' ],
54 silly audit   'prelude-ls': [ '1.2.1' ],
54 silly audit   'pretty-bytes': [ '6.0.0' ],
54 silly audit   'pretty-hrtime': [ '1.0.3' ],
54 silly audit   'prop-types': [ '15.8.1' ],
54 silly audit   pump: [ '3.0.0' ],
54 silly audit   punycode: [ '2.1.1' ],
54 silly audit   'queue-microtask': [ '1.2.3' ],
54 silly audit   'quick-lru': [ '5.1.1' ],
54 silly audit   rc: [ '1.2.8' ],
54 silly audit   'strip-json-comments': [ '2.0.1', '3.1.1' ],
54 silly audit   react: [ '18.2.0' ],
54 silly audit   'react-dom': [ '18.2.0' ],
54 silly audit   'react-is': [ '16.13.1' ],
54 silly audit   'read-cache': [ '1.0.0' ],
54 silly audit   'readable-stream': [ '3.6.0' ],
54 silly audit   readdirp: [ '3.6.0' ],
54 silly audit   'regexp.prototype.flags': [ '1.4.3' ],
54 silly audit   regexpp: [ '3.2.0' ],
54 silly audit   'require-directory': [ '2.1.1' ],
54 silly audit   'resolve-from': [ '4.0.0' ],
54 silly audit   reusify: [ '1.0.4' ],
54 silly audit   rimraf: [ '3.0.2' ],
54 silly audit   'run-parallel': [ '1.2.0' ],
54 silly audit   'safe-buffer': [ '5.2.1' ],
54 silly audit   scheduler: [ '0.23.0' ],
54 silly audit   sharp: [ '0.30.7' ],
54 silly audit   'shebang-command': [ '2.0.0' ],
54 silly audit   'shebang-regex': [ '3.0.0' ],
54 silly audit   'side-channel': [ '1.0.4' ],
54 silly audit   'simple-concat': [ '1.0.1' ],
54 silly audit   'simple-get': [ '4.0.1' ],
54 silly audit   'simple-swizzle': [ '0.2.2' ],
54 silly audit   'source-map': [ '0.6.1' ],
54 silly audit   'source-map-js': [ '1.0.2' ],
54 silly audit   stable: [ '0.1.8' ],
54 silly audit   string_decoder: [ '1.3.0' ],
54 silly audit   'string-width': [ '4.2.3' ],
54 silly audit   'string.prototype.matchall': [ '4.0.7' ],
54 silly audit   'string.prototype.trimend': [ '1.0.5' ],
54 silly audit   'string.prototype.trimstart': [ '1.0.5' ],
54 silly audit   'strip-ansi': [ '6.0.1' ],
54 silly audit   stylehacks: [ '5.1.0' ],
54 silly audit   'supports-color': [ '7.2.0' ],
54 silly audit   'supports-preserve-symlinks-flag': [ '1.0.0' ],
54 silly audit   svgo: [ '2.8.0' ],
54 silly audit   tailwindcss: [ '3.1.7' ],
54 silly audit   'tar-fs': [ '2.1.1' ],
54 silly audit   'tar-stream': [ '2.2.0' ],
54 silly audit   'text-table': [ '0.2.0' ],
54 silly audit   thenby: [ '1.3.4' ],
54 silly audit   'to-regex-range': [ '5.0.1' ],
54 silly audit   'tunnel-agent': [ '0.6.0' ],
54 silly audit   'type-check': [ '0.4.0' ],
54 silly audit   'type-fest': [ '0.20.2' ],
54 silly audit   'unbox-primitive': [ '1.0.2' ],
54 silly audit   universalify: [ '2.0.0' ],
54 silly audit   'update-browserslist-db': [ '1.0.5' ],
54 silly audit   'uri-js': [ '4.4.1' ],
54 silly audit   'util-deprecate': [ '1.0.2' ],
54 silly audit   uuid: [ '8.3.2' ],
54 silly audit   'uWebSockets.js': [ '20.10.0' ],
54 silly audit   'v8-compile-cache': [ '2.3.0' ],
54 silly audit   'web-streams-polyfill': [ '3.2.1' ],
54 silly audit   which: [ '2.0.2' ],
54 silly audit   'which-boxed-primitive': [ '1.0.2' ],
54 silly audit   'word-wrap': [ '1.2.3' ],
54 silly audit   'wrap-ansi': [ '7.0.0' ],
54 silly audit   wrappy: [ '1.0.2' ],
54 silly audit   xtend: [ '4.0.2' ],
54 silly audit   y18n: [ '5.0.8' ],
54 silly audit   yallist: [ '4.0.0' ],
54 silly audit   yargs: [ '17.5.1' ],
54 silly audit   'yargs-parser': [ '21.1.1' ],
54 silly audit   'yocto-queue': [ '0.1.0' ],
54 silly audit   'isolated-vm': [ '4.4.1' ]
54 silly audit }
55 verbose reify failed optional dependency /home/user/Documents/jxyz/node_modules/fsevents
56 silly reify mark deleted [ '/home/user/Documents/jxyz/node_modules/fsevents' ]
57 verbose reify failed optional dependency /home/user/Documents/jxyz/node_modules/esbuild-windows-arm64
58 silly reify mark deleted [ '/home/user/Documents/jxyz/node_modules/esbuild-windows-arm64' ]
59 verbose reify failed optional dependency /home/user/Documents/jxyz/node_modules/esbuild-windows-64
60 silly reify mark deleted [ '/home/user/Documents/jxyz/node_modules/esbuild-windows-64' ]
61 verbose reify failed optional dependency /home/user/Documents/jxyz/node_modules/esbuild-windows-32
62 silly reify mark deleted [ '/home/user/Documents/jxyz/node_modules/esbuild-windows-32' ]
63 verbose reify failed optional dependency /home/user/Documents/jxyz/node_modules/esbuild-sunos-64
64 silly reify mark deleted [ '/home/user/Documents/jxyz/node_modules/esbuild-sunos-64' ]
65 verbose reify failed optional dependency /home/user/Documents/jxyz/node_modules/esbuild-openbsd-64
66 silly reify mark deleted [ '/home/user/Documents/jxyz/node_modules/esbuild-openbsd-64' ]
67 verbose reify failed optional dependency /home/user/Documents/jxyz/node_modules/esbuild-netbsd-64
68 silly reify mark deleted [ '/home/user/Documents/jxyz/node_modules/esbuild-netbsd-64' ]
69 verbose reify failed optional dependency /home/user/Documents/jxyz/node_modules/esbuild-linux-s390x
70 silly reify mark deleted [ '/home/user/Documents/jxyz/node_modules/esbuild-linux-s390x' ]
71 verbose reify failed optional dependency /home/user/Documents/jxyz/node_modules/esbuild-linux-riscv64
72 silly reify mark deleted [ '/home/user/Documents/jxyz/node_modules/esbuild-linux-riscv64' ]
73 verbose reify failed optional dependency /home/user/Documents/jxyz/node_modules/esbuild-linux-ppc64le
74 silly reify mark deleted [ '/home/user/Documents/jxyz/node_modules/esbuild-linux-ppc64le' ]
75 verbose reify failed optional dependency /home/user/Documents/jxyz/node_modules/esbuild-linux-mips64le
76 silly reify mark deleted [ '/home/user/Documents/jxyz/node_modules/esbuild-linux-mips64le' ]
77 verbose reify failed optional dependency /home/user/Documents/jxyz/node_modules/esbuild-linux-arm64
78 silly reify mark deleted [ '/home/user/Documents/jxyz/node_modules/esbuild-linux-arm64' ]
79 verbose reify failed optional dependency /home/user/Documents/jxyz/node_modules/esbuild-linux-arm
80 silly reify mark deleted [ '/home/user/Documents/jxyz/node_modules/esbuild-linux-arm' ]
81 verbose reify failed optional dependency /home/user/Documents/jxyz/node_modules/esbuild-linux-32
82 silly reify mark deleted [ '/home/user/Documents/jxyz/node_modules/esbuild-linux-32' ]
83 verbose reify failed optional dependency /home/user/Documents/jxyz/node_modules/esbuild-freebsd-arm64
84 silly reify mark deleted [ '/home/user/Documents/jxyz/node_modules/esbuild-freebsd-arm64' ]
85 verbose reify failed optional dependency /home/user/Documents/jxyz/node_modules/esbuild-freebsd-64
86 silly reify mark deleted [ '/home/user/Documents/jxyz/node_modules/esbuild-freebsd-64' ]
87 verbose reify failed optional dependency /home/user/Documents/jxyz/node_modules/esbuild-darwin-arm64
88 silly reify mark deleted [ '/home/user/Documents/jxyz/node_modules/esbuild-darwin-arm64' ]
89 verbose reify failed optional dependency /home/user/Documents/jxyz/node_modules/esbuild-darwin-64
90 silly reify mark deleted [ '/home/user/Documents/jxyz/node_modules/esbuild-darwin-64' ]
91 verbose reify failed optional dependency /home/user/Documents/jxyz/node_modules/esbuild-android-arm64
92 silly reify mark deleted [ '/home/user/Documents/jxyz/node_modules/esbuild-android-arm64' ]
93 verbose reify failed optional dependency /home/user/Documents/jxyz/node_modules/esbuild-android-64
94 silly reify mark deleted [ '/home/user/Documents/jxyz/node_modules/esbuild-android-64' ]
95 verbose reify failed optional dependency /home/user/Documents/jxyz/node_modules/@esbuild/linux-loong64
96 silly reify mark deleted [ '/home/user/Documents/jxyz/node_modules/@esbuild/linux-loong64' ]
97 timing reifyNode:node_modules/fsevents Completed in 60ms
98 timing reifyNode:node_modules/esbuild-windows-arm64 Completed in 60ms
99 timing reifyNode:node_modules/esbuild-windows-64 Completed in 60ms
100 timing reifyNode:node_modules/esbuild-windows-32 Completed in 60ms
101 timing reifyNode:node_modules/esbuild-sunos-64 Completed in 60ms
102 timing reifyNode:node_modules/esbuild-openbsd-64 Completed in 59ms
103 timing reifyNode:node_modules/esbuild-netbsd-64 Completed in 59ms
104 timing reifyNode:node_modules/esbuild-linux-s390x Completed in 59ms
105 timing reifyNode:node_modules/esbuild-linux-riscv64 Completed in 60ms
106 timing reifyNode:node_modules/esbuild-linux-ppc64le Completed in 60ms
107 timing reifyNode:node_modules/esbuild-linux-mips64le Completed in 60ms
108 timing reifyNode:node_modules/esbuild-linux-arm64 Completed in 60ms
109 timing reifyNode:node_modules/esbuild-linux-arm Completed in 59ms
110 timing reifyNode:node_modules/esbuild-linux-32 Completed in 59ms
111 timing reifyNode:node_modules/esbuild-freebsd-arm64 Completed in 59ms
112 timing reifyNode:node_modules/esbuild-freebsd-64 Completed in 59ms
113 timing reifyNode:node_modules/esbuild-darwin-arm64 Completed in 59ms
114 timing reifyNode:node_modules/esbuild-darwin-64 Completed in 59ms
115 timing reifyNode:node_modules/esbuild-android-arm64 Completed in 59ms
116 timing reifyNode:node_modules/esbuild-android-64 Completed in 59ms
117 timing reifyNode:node_modules/@esbuild/linux-loong64 Completed in 59ms
118 timing reifyNode:node_modules/isolated-vm Completed in 149ms
119 timing reify:unpack Completed in 149ms
120 timing reify:unretire Completed in 1ms
121 timing build:queue Completed in 2ms
122 info run isolated-vm@4.4.1 install node_modules/isolated-vm node-gyp rebuild --release -j 4
123 info run isolated-vm@4.4.1 install { code: 1, signal: null }
124 timing reify:rollback:createSparse Completed in 32ms
125 timing reify:rollback:retireShallow Completed in 0ms
126 timing command:install Completed in 1401ms
127 verbose stack Error: command failed
127 verbose stack     at ChildProcess.<anonymous> (/snap/node/6553/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:63:27)
127 verbose stack     at ChildProcess.emit (node:events:513:28)
127 verbose stack     at maybeClose (node:internal/child_process:1091:16)
127 verbose stack     at ChildProcess._handle.onexit (node:internal/child_process:302:5)
128 verbose pkgid isolated-vm@4.4.1
129 verbose cwd /home/user/Documents/jxyz
130 verbose Linux 5.15.0-43-generic
131 verbose node v18.7.0
132 verbose npm  v8.15.0
133 error code 1
134 error path /home/user/Documents/jxyz/node_modules/isolated-vm
135 error command failed
136 error command sh /tmp/install-5eba966f.sh
137 verbose exit 1
138 timing npm Completed in 1534ms
139 verbose unfinished npm timer reify 1659743858567
140 verbose unfinished npm timer reify:audit 1659743859563
141 verbose unfinished npm timer auditReport:getReport 1659743859563
142 verbose unfinished npm timer reify:build 1659743859729
143 verbose unfinished npm timer build 1659743859729
144 verbose unfinished npm timer build:deps 1659743859730
145 verbose unfinished npm timer build:run:install 1659743859732
146 verbose unfinished npm timer build:run:install:node_modules/isolated-vm 1659743859732
147 verbose code 1
148 error A complete log of this run can be found in:
148 error     /home/user/.npm/_logs/2022-08-05T23_57_38_436Z-debug-0.log
user@device:~/Documents/jxyz$ gcc --version
gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

user@device:~/Documents/jxyz$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:        22.04
Codename:       jammy

user@device:~/Documents/jxyz$ node --version
v18.7.0

user@device:~/Documents/jxyz$ npm --version
8.15.0
laverdet commented 2 years ago

I'm guessing your CI/CD server is out memory. Please reopen w/o the AWS SDK dependencies if it's still an issie

joshxyzhimself commented 2 years ago

Hi @laverdet, it's not a CI/CD server, it's a freshly installed Ubuntu Desktop 22.04.

I tried on a new folder, same results. May you reopen the issue?

user@device:~/Documents/test$ npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See `npm help init` for definitive documentation on these fields
and exactly what they do.

Use `npm install <pkg>` afterwards to install a package and
save it as a dependency in the package.json file.

Press ^C at any time to quit.
package name: (test) 
version: (1.0.0) 
description: 
entry point: (index.js) 
test command: 
git repository: 
keywords: 
author: 
license: (ISC) 
About to write to /home/user/Documents/test/package.json:

{
  "name": "test",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC"
}

Is this OK? (yes) yes

user@device:~/Documents/test$ npm install isolated-vm
npm ERR! code 1
npm ERR! path /home/user/Documents/test/node_modules/isolated-vm
npm ERR! command failed
npm ERR! command sh /tmp/install-c4d403d0.sh

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2022-08-06T08_27_20_155Z-debug-0.log

user@device:~/Documents/test$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:    22.04
Codename:   jammy

user@device:~/Documents/test$ node -v
v18.7.0

user@device:~/Documents/test$ npm -v
8.15.0

user@device:~/Documents/test$ gcc --version
gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
user@device:~/Documents/test$ cat /home/user/.npm/_logs/2022-08-06T08_27_20_155Z-debug-0.log
0 verbose cli /snap/node/6553/bin/node /snap/node/6553/bin/npm
1 info using npm@8.15.0
2 info using node@v18.7.0
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 2ms
5 timing config:load:file:/snap/node/6553/lib/node_modules/npm/npmrc Completed in 1ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/home/user/Documents/test/.npmrc Completed in 0ms
10 timing config:load:project Completed in 14ms
11 timing config:load:file:/home/user/.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:/snap/node/6553/etc/npmrc Completed in 2ms
14 timing config:load:global Completed in 2ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 2ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 24ms
19 timing npm:load:configload Completed in 24ms
20 timing npm:load:mkdirpcache Completed in 1ms
21 timing npm:load:mkdirplogs Completed in 0ms
22 verbose title npm install isolated-vm
23 verbose argv "install" "isolated-vm"
24 timing npm:load:setTitle Completed in 2ms
25 timing config:load:flatten Completed in 3ms
26 timing npm:load:display Completed in 5ms
27 verbose logfile logs-max:10 dir:/home/user/.npm/_logs
28 verbose logfile /home/user/.npm/_logs/2022-08-06T08_27_20_155Z-debug-0.log
29 timing npm:load:logFile Completed in 5ms
30 timing npm:load:timers Completed in 0ms
31 timing npm:load:configScope Completed in 0ms
32 timing npm:load Completed in 39ms
33 timing arborist:ctor Completed in 1ms
34 silly logfile start cleaning logs, removing 1 files
35 silly logfile done cleaning log files
36 timing arborist:ctor Completed in 0ms
37 timing idealTree:init Completed in 16ms
38 timing idealTree:userRequests Completed in 3ms
39 silly idealTree buildDeps
40 silly fetch manifest isolated-vm@*
41 http fetch GET 200 https://registry.npmjs.org/isolated-vm 1530ms (cache revalidated)
42 silly placeDep ROOT isolated-vm@4.4.1 OK for: test@1.0.0 want: *
43 timing idealTree:#root Completed in 1545ms
44 timing idealTree:node_modules/isolated-vm Completed in 0ms
45 timing idealTree:buildDeps Completed in 1547ms
46 timing idealTree:fixDepFlags Completed in 0ms
47 timing idealTree Completed in 1568ms
48 timing reify:loadTrees Completed in 1569ms
49 timing reify:diffTrees Completed in 1ms
50 silly reify moves {}
51 timing reify:retireShallow Completed in 2ms
52 timing reify:createSparse Completed in 1ms
53 timing reify:loadBundles Completed in 0ms
54 silly audit bulk request { 'isolated-vm': [ '4.4.1' ] }
55 timing reifyNode:node_modules/isolated-vm Completed in 95ms
56 timing reify:unpack Completed in 95ms
57 timing reify:unretire Completed in 0ms
58 timing build:queue Completed in 2ms
59 info run isolated-vm@4.4.1 install node_modules/isolated-vm node-gyp rebuild --release -j 4
60 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 307ms
61 timing auditReport:getReport Completed in 309ms
62 silly audit report {}
63 timing auditReport:init Completed in 0ms
64 timing reify:audit Completed in 309ms
65 info run isolated-vm@4.4.1 install { code: 1, signal: null }
66 timing reify:rollback:createSparse Completed in 22ms
67 timing reify:rollback:retireShallow Completed in 0ms
68 timing command:install Completed in 1925ms
69 verbose stack Error: command failed
69 verbose stack     at ChildProcess.<anonymous> (/snap/node/6553/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:63:27)
69 verbose stack     at ChildProcess.emit (node:events:513:28)
69 verbose stack     at maybeClose (node:internal/child_process:1091:16)
69 verbose stack     at Socket.<anonymous> (node:internal/child_process:449:11)
69 verbose stack     at Socket.emit (node:events:513:28)
69 verbose stack     at Pipe.<anonymous> (node:net:757:14)
70 verbose pkgid isolated-vm@4.4.1
71 verbose cwd /home/user/Documents/test
72 verbose Linux 5.15.0-43-generic
73 verbose node v18.7.0
74 verbose npm  v8.15.0
75 error code 1
76 error path /home/user/Documents/test/node_modules/isolated-vm
77 error command failed
78 error command sh /tmp/install-c4d403d0.sh
79 verbose exit 1
80 timing npm Completed in 2059ms
81 verbose unfinished npm timer reify 1659774440290
82 verbose unfinished npm timer reify:build 1659774441978
83 verbose unfinished npm timer build 1659774441978
84 verbose unfinished npm timer build:deps 1659774441978
85 verbose unfinished npm timer build:run:install 1659774441980
86 verbose unfinished npm timer build:run:install:node_modules/isolated-vm 1659774441981
87 verbose code 1
88 error A complete log of this run can be found in:
88 error     /home/user/.npm/_logs/2022-08-06T08_27_20_155Z-debug-0.log
joshxyzhimself commented 2 years ago

And I have 12 gb ram

image

laverdet commented 2 years ago

Thanks for the information. Can you try cloning the repro and building manually? There's no output from the build command which is strange.

Something like: git clone https://[...] cd isolated-vm npx node-gyp --rebuild

I'm not at a computer so you may have to tinker a bit for the exact commands

joshxyzhimself commented 2 years ago

Sure sure, results:

user@device:~/Documents$ git clone git@github.com:laverdet/isolated-vm.git
Cloning into 'isolated-vm'...
remote: Enumerating objects: 4047, done.
remote: Counting objects: 100% (703/703), done.
remote: Compressing objects: 100% (240/240), done.
remote: Total 4047 (delta 470), reused 682 (delta 459), pack-reused 3344
Receiving objects: 100% (4047/4047), 1.09 MiB | 809.00 KiB/s, done.
Resolving deltas: 100% (3067/3067), done.

user@device:~/Documents$ cd isolated-vm/

user@device:~/Documents/isolated-vm$ npm install
npm ERR! code 1
npm ERR! path /home/user/Documents/isolated-vm
npm ERR! command failed
npm ERR! command sh /tmp/install-b3d7dc5c.sh

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2022-08-06T21_31_49_163Z-debug-0.log

user@device:~/Documents/isolated-vm$  npx node-gyp --rebuild
Need to install the following packages:
  node-gyp@9.1.0
Ok to proceed? (y) y

  Usage: node-gyp <command> [options]

  where <command> is one of:
    - build - Invokes `make` and builds the module
    - clean - Removes any generated build files and the "out" dir
    - configure - Generates a Makefile for the current module
    - rebuild - Runs "clean", "configure" and "build" all at once
    - install - Install node development files for the specified node version.
    - list - Prints a listing of the currently installed node development files
    - remove - Removes the node development files for the specified version

node-gyp@9.0.0  /snap/node/6553/lib/node_modules/npm/node_modules/node-gyp
node@18.7.0

user@device:~/Documents/isolated-vm$  npx node-gyp --rebuild

  Usage: node-gyp <command> [options]

  where <command> is one of:
    - build - Invokes `make` and builds the module
    - clean - Removes any generated build files and the "out" dir
    - configure - Generates a Makefile for the current module
    - rebuild - Runs "clean", "configure" and "build" all at once
    - install - Install node development files for the specified node version.
    - list - Prints a listing of the currently installed node development files
    - remove - Removes the node development files for the specified version

node-gyp@9.0.0  /snap/node/6553/lib/node_modules/npm/node_modules/node-gyp
node@18.7.0

image

joshxyzhimself commented 2 years ago

Did this build properly?

user@device:~/Documents/isolated-vm$ npx node-gyp rebuild --release -j 4
gyp info it worked if it ends with ok
gyp info using node-gyp@9.0.0
gyp info using node@18.7.0 | linux | x64
gyp info find Python using Python version 3.10.4 found at "/usr/bin/python3"
gyp http GET https://nodejs.org/download/release/v18.7.0/node-v18.7.0-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v18.7.0/node-v18.7.0-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v18.7.0/SHASUMS256.txt
gyp http 200 https://nodejs.org/download/release/v18.7.0/SHASUMS256.txt
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args   '/snap/node/6553/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/home/user/Documents/isolated-vm/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/snap/node/6553/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/user/.cache/node-gyp/18.7.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/user/.cache/node-gyp/18.7.0',
gyp info spawn args   '-Dnode_gyp_dir=/snap/node/6553/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/user/.cache/node-gyp/18.7.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/home/user/Documents/isolated-vm',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build', '--jobs', 4 ]
make: Entering directory '/home/user/Documents/isolated-vm/build'
  CXX(target) Release/obj.target/nortti/src/external_copy/serializer_nortti.o
  CXX(target) Release/obj.target/nortti/src/isolate/allocator_nortti.o
  AR(target) Release/obj.target/nortti.a
  COPY Release/nortti.a
  CXX(target) Release/obj.target/isolated_vm/src/external_copy/external_copy.o
  CXX(target) Release/obj.target/isolated_vm/src/external_copy/serializer.o
  CXX(target) Release/obj.target/isolated_vm/src/external_copy/string.o
  CXX(target) Release/obj.target/isolated_vm/src/isolate/environment.o
../src/isolate/environment.cc:25: warning: "_GNU_SOURCE" redefined
   25 | #define _GNU_SOURCE
      | 
<command-line>: note: this is the location of the previous definition
  CXX(target) Release/obj.target/isolated_vm/src/isolate/executor.o
  CXX(target) Release/obj.target/isolated_vm/src/isolate/holder.o
  CXX(target) Release/obj.target/isolated_vm/src/isolate/inspector.o
  CXX(target) Release/obj.target/isolated_vm/src/isolate/platform_delegate.o
  CXX(target) Release/obj.target/isolated_vm/src/isolate/scheduler.o
  CXX(target) Release/obj.target/isolated_vm/src/isolate/stack_trace.o
  CXX(target) Release/obj.target/isolated_vm/src/isolate/three_phase_task.o
  CXX(target) Release/obj.target/isolated_vm/src/lib/thread_pool.o
  CXX(target) Release/obj.target/isolated_vm/src/lib/timer.o
  CXX(target) Release/obj.target/isolated_vm/src/module/callback.o
  CXX(target) Release/obj.target/isolated_vm/src/module/context_handle.o
  CXX(target) Release/obj.target/isolated_vm/src/module/evaluation.o
  CXX(target) Release/obj.target/isolated_vm/src/module/external_copy_handle.o
  CXX(target) Release/obj.target/isolated_vm/src/module/isolate.o
  CXX(target) Release/obj.target/isolated_vm/src/module/isolate_handle.o
  CXX(target) Release/obj.target/isolated_vm/src/module/lib_handle.o
../src/module/lib_handle.cc: In member function ‘v8::Local<v8::Value> ivm::LibHandle::PrivateSymbol(v8::MaybeLocal<v8::String>)’:
../src/module/lib_handle.cc:58:17: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
   58 |         return *reinterpret_cast<Local<Value>*>(&symbol);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/module/lib_handle.cc:58:17: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  CXX(target) Release/obj.target/isolated_vm/src/module/module_handle.o
  CXX(target) Release/obj.target/isolated_vm/src/module/native_module_handle.o
  CXX(target) Release/obj.target/isolated_vm/src/module/reference_handle.o
  CXX(target) Release/obj.target/isolated_vm/src/module/script_handle.o
  CXX(target) Release/obj.target/isolated_vm/src/module/session_handle.o
  CXX(target) Release/obj.target/isolated_vm/src/module/transferable.o
  SOLINK_MODULE(target) Release/obj.target/isolated_vm.node
  COPY Release/isolated_vm.node
  COPY ../out/isolated_vm.node
  TOUCH Release/obj.target/action_after_build.stamp
make: Leaving directory '/home/user/Documents/isolated-vm/build'
gyp info ok 
user@device:~/Documents/isolated-vm$ ls -al ./build/
total 68
drwxrwxr-x  3 user user  4096 Aug  7 05:35 .
drwxrwxr-x 11 user user  4096 Aug  7 05:36 ..
-rw-rw-r--  1 user user  1082 Aug  7 05:35 action_after_build.target.mk
-rw-rw-r--  1 user user   145 Aug  7 05:35 binding.Makefile
-rw-rw-r--  1 user user 14175 Aug  7 05:35 config.gypi
-rw-rw-r--  1 user user  7051 Aug  7 05:35 isolated_vm.target.mk
-rw-rw-r--  1 user user 13293 Aug  7 05:35 Makefile
-rw-rw-r--  1 user user  5573 Aug  7 05:35 nortti.target.mk
drwxrwxr-x  5 user user  4096 Aug  7 05:36 Release

user@device:~/Documents/isolated-vm$ ls -al ./build/Release
total 25508
drwxrwxr-x 5 user user     4096 Aug  7 05:36 .
drwxrwxr-x 3 user user     4096 Aug  7 05:35 ..
drwxrwxr-x 3 user user     4096 Aug  7 05:35 .deps
-rwxrwxr-x 3 user user 24066488 Aug  7 05:36 isolated_vm.node
-rw-rw-r-- 2 user user  2030738 Aug  7 05:35 nortti.a
drwxrwxr-x 4 user user     4096 Aug  7 05:36 obj.target
drwxrwxr-x 2 user user     4096 Aug  7 05:36 out

user@device:~/Documents/isolated-vm$ ls -al ./build/Release/out
total 12
drwxrwxr-x 2 user user 4096 Aug  7 05:36 .
drwxrwxr-x 5 user user 4096 Aug  7 05:36 ..
-rw-rw-r-- 1 user user  203 Aug  7 05:36 isolated_vm.node.d
joshxyzhimself commented 2 years ago

Could it be because on package.json it is

node-gyp rebuild --release -j 4

instead of

npx node-gyp rebuild --release -j 4

?

joshxyzhimself commented 2 years ago

Forked it here: https://github.com/joshxyzhimself/isolated-vm

Applied the changes in package.json here: https://github.com/joshxyzhimself/isolated-vm/commit/cb980068c1394423c8c52bc3d75607fcca588199

image

Installed successfully here:

image

joshxyzhimself commented 2 years ago

Currently stuck here

user@device:~/Documents/jxyz$ node ./ivm.mjs
node:internal/modules/cjs/loader:1204
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: /snap/core20/current/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/user/Documents/jxyz/node_modules/isolated-vm/out/isolated_vm.node)
    at Module._extensions..node (node:internal/modules/cjs/loader:1204:18)
    at Module.load (node:internal/modules/cjs/loader:998:32)
    at Module._load (node:internal/modules/cjs/loader:839:12)
    at Module.require (node:internal/modules/cjs/loader:1022:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/user/Documents/jxyz/node_modules/isolated-vm/isolated-vm.js:1:18)
    at Module._compile (node:internal/modules/cjs/loader:1120:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1174:10)
    at Module.load (node:internal/modules/cjs/loader:998:32)
    at Module._load (node:internal/modules/cjs/loader:839:12) {
  code: 'ERR_DLOPEN_FAILED'
}

Node.js v18.7.0
joshxyzhimself commented 2 years ago

So the error above looks for GLIBCXX_3.4.29

Because it is not in /snap/core20/current/lib/x86_64-linux-gnu/libstdc++.so.6

user@device:~/Documents/jxyz$ strings /snap/core20/current/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21
GLIBCXX_3.4.22
GLIBCXX_3.4.23
GLIBCXX_3.4.24
GLIBCXX_3.4.25
GLIBCXX_3.4.26
GLIBCXX_3.4.27
GLIBCXX_3.4.28
GLIBCXX_DEBUG_MESSAGE_LENGTH

First of all I don't know how the fuck it reached snap folder hahaha.

I checked my installed version, it says it's latest

user@device:~/Documents/jxyz$ sudo apt install libstdc++6
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libstdc++6 is already the newest version (12-20220319-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
user@device:~/Documents/jxyz$ /sbin/ldconfig -p | grep stdc++
        libstdc++.so.6 (libc6,x86-64) => /lib/x86_64-linux-gnu/libstdc++.so.6
        libstdc++.so.6 (libc6) => /lib/i386-linux-gnu/libstdc++.so.6

It also has the GLIBCXX_3.4.29 we are looking for.

user@device:~/Documents/jxyz$ strings /lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21
GLIBCXX_3.4.22
GLIBCXX_3.4.23
GLIBCXX_3.4.24
GLIBCXX_3.4.25
GLIBCXX_3.4.26
GLIBCXX_3.4.27
GLIBCXX_3.4.28
GLIBCXX_3.4.29
GLIBCXX_3.4.30
GLIBCXX_DEBUG_MESSAGE_LENGTH

So my question is, how do I make it load from /lib/x86_64-linux-gnu/libstdc++.so.6 instead from /snap/core20/current/lib/x86_64-linux-gnu/libstdc++.so.6?

I'll update if I find solutions :rocket:

joshxyzhimself commented 2 years ago

Tried this from here, no luck

user@device:~/Documents/jxyz$ LD_PRELOAD='/lib/x86_64-linux-gnu/libstdc++.so.6' node ./ivm.mjs
/snap/node/6553/bin/node: /snap/core20/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /lib/x86_64-linux-gnu/libstdc++.so.6)
/snap/node/6553/bin/node: /snap/core20/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /lib/x86_64-linux-gnu/libstdc++.so.6)
/snap/node/6553/bin/node: /snap/core20/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /lib/x86_64-linux-gnu/libstdc++.so.6)
joshxyzhimself commented 2 years ago
// @ts-check

import * as ivm from 'isolated-vm';

const isolate = new ivm.Isolate({ memoryLimit: 8 });
const context = isolate.createContextSync();
const jail = context.global;
jail.setSync('global', jail.derefInto());
jail.setSync('log', (...args) => {
  console.log(...args);
});
context.evalSync('log("hello world")');
user@device:~/Documents/jxyz$ LD_PRELOAD='/lib/x86_64-linux-gnu/libstdc++.so.6 /lib/x86_64-linux-gnu/libc.so.6' node ./ivm.mjs
Segmentation fault (core dumped)
user@device:~/Documents/jxyz$ LD_PRELOAD="/lib/x86_64-linux-gnu/libstdc++.so.6 /lib/x86_64-linux-gnu/libc.so.6" node ./ivm.mjs
Segmentation fault (core dumped)
joshxyzhimself commented 2 years ago

Stuck figuring out how to make it load from /lib/x86_64-linux-gnu/libstdc++.so.6 instead from /snap/core20/current/lib/x86_64-linux-gnu/libstdc++.so.6 lol

joshxyzhimself commented 2 years ago

Any ideas?

laverdet commented 2 years ago

Re: npx node-gyp this isn't needed in npm scripts because npm will set your $PATH correctly. The fact that npx changes the behavior in your case leads me to believe something truly horrible has happened to your system configuration. I might start troubleshooting by making a package.json with { "scripts": { "test": "echo $PATH" } } and find out why node-gyp isn't in this PATH. That may give you a lead on at least one issue.

Your issue with GLIBCXX_3.4.29 is almost certainly related. isolated-vm does not require a GLIBCXX version that high. Here is what I see on my system:

marcel@serv ~/tmp/node_modules/isolated-vm $ strings out/isolated_vm.node | egrep ^GLIBCXX | sort -V
GLIBCXX_3.4
GLIBCXX_3.4.9
GLIBCXX_3.4.11
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.21
GLIBCXX_3.4.22

This makes me think the headers you're compiling against are different than the libraries you're linking to. Again, I think something awful has happened to your computer.

joshxyzhimself commented 2 years ago

Found the fix lads

I encountered the same installation problems when I was trying to install puppeteer so I suspected it's my Node & NPM.

I uninstalled from Snap: https://snapcraft.io/node

I reinstalled from nodesource: https://github.com/nodesource/distributions#debinstall

Puppeteer now works. Isolated VM now works.

// @ts-check

import { default as ivm } from 'isolated-vm';

const isolate = new ivm.Isolate({ memoryLimit: 8 });
const context = isolate.createContextSync();
const jail = context.global;
jail.setSync('global', jail.derefInto());
jail.setSync('log', (...args) => {
  console.log(...args);
});
context.evalSync('log("hello world")');
user@device:~/Documents/project$ node ./ivm.mjs 
hello world