osrf / gazebojs

3 stars 3 forks source link

Fails to install on node 16.x #24

Open ryanhugh opened 3 years ago

ryanhugh commented 3 years ago
~/D/c/s/gazebo-js> yarn add gazebojs
yarn add v1.22.10
...
[4/4] 🔨  Building fresh packages...
error /myproject/gazebo-js/node_modules/gazebojs: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /myproject/gazebo-js/node_modules/gazebojs
Output:
fs.js:47
} = primordials;
    ^

ReferenceError: primordials is not defined
    at fs.js:47:5
    at req_ (/myproject/gazebo-js/node_modules/natives/index.js:143:24)
    at Object.req [as require] (/myproject/gazebo-js/node_modules/natives/index.js:55:10)
    at Object.<anonymous> (/myproject/gazebo-js/node_modules/node-gyp/node_modules/graceful-fs/fs.js:1:37)
    at Module._compile (node:internal/modules/cjs/loader:1109:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)
    at Module.load (node:internal/modules/cjs/loader:989:32)
    at Function.Module._load (node:internal/modules/cjs/loader:829:14)
    at Module.require (node:internal/modules/cjs/loader:1013:19)
    at require (node:internal/modules/cjs/helpers:93:18)
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Looks related: https://stackoverflow.com/questions/55921442/how-to-fix-referenceerror-primordials-is-not-defined-in-node-js

I'm on: MacOS 11.4 Node.js 16.2.0 Gazebo 11