Open owocki opened 1 year ago
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@octokit/request-error@4.0.2',
npm WARN EBADENGINE required: { node: '>= 18' },
npm WARN EBADENGINE current: { node: 'v16.20.0', npm: '9.6.3' }
npm WARN EBADENGINE }
this seems suspicious.. but then again the readme specifies node should be v16.
I have also encountered this issue and have tried many times but have not been successful in running it,have you solved it yet?
Git clone the latest repo, and excute "yarn --unsafe-perm" cmd,then it worked for me. os: linux Version: node v20.3.1 npm 9.7.2 yarn 1.22.19
I had the same problem and was able to fix it by installing lerna version 4.0.0 instead:
npm install --global lerna@^4.0.0
This problem is solved by npm install --global lerna@^4.0.0
, but another problem appears:
$ lerna bootstrap
lerna notice cli v4.0.0
lerna info versioning independent
lerna info bootstrap root only
node:internal/errors:513
throw error;
^
TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received an instance of Error
at process.set [as exitCode] (node:internal/bootstrap/node:123:9)
at ChildProcess.drain (/home/porton/.nvm/versions/node/v21.5.0/lib/node_modules/lerna/node_modules/@lerna/child-process/index.js:138:24)
at Object.onceWrapper (node:events:634:26)
at ChildProcess.emit (node:events:531:35)
at ChildProcess._handle.onexit (node:internal/child_process:292:12)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'ERR_INVALID_ARG_TYPE'
}
Node.js v21.5.0
but another problem appears
This problem is solved by using an old version of Node: nvm use v16.16.0
.
Overview When installing the passport repo locally, the following error is presented.
even though this is a new repo that has never had
lerna init
run on it before.Steps To Reproduce
Follow the instructions on the README:
on OS X.
Observed behavior Errors are thrown during
lerna init
andlerna bootstrap
.Expected behavior No errors are thrown.
Additional context Let me know what else you need to diagnose this.