packages
packages copied to clipboard
mongosh fails to build
Summary
mongosh fails to build.
Steps to reproduce
Build mongosh with go-task.
Expected result
Package builds successfully.
Actual result
Error shown below when running yarn run compile-cli:
yarn run v1.22.19
$ lerna run compile-ts --scope @mongosh/cli-repl --include-dependencies
lerna notice cli v4.0.0
lerna notice filter including "@mongosh/cli-repl"
lerna notice filter including dependencies
lerna info filter [ '@mongosh/cli-repl' ]
lerna info Executing command in 15 packages: "yarn run compile-ts"
lerna info run Ran npm script 'compile-ts' in '@mongosh/history' in 2.7s:
$ tsc -p tsconfig.json
lerna info run Ran npm script 'compile-ts' in '@mongosh/types' in 2.7s:
$ tsc -p tsconfig.json
lerna info run Ran npm script 'compile-ts' in '@mongosh/errors' in 2.8s:
$ tsc -p tsconfig.json
lerna info run Ran npm script 'compile-ts' in '@mongosh/logging' in 2.5s:
$ tsc -p tsconfig.json
lerna info run Ran npm script 'compile-ts' in '@mongosh/i18n' in 2.6s:
$ tsc -p tsconfig.json
lerna ERR! yarn run compile-ts exited 2 in '@mongosh/js-multiline-to-singleline'
lerna ERR! yarn run compile-ts stdout:
$ tsc -p tsconfig.json
node_modules/@types/babel__traverse/index.d.ts(314,10): error TS1023: An index signature parameter type must be either 'string' or 'number'.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! yarn run compile-ts stderr:
error Command failed with exit code 2.
lerna ERR! yarn run compile-ts exited 2 in '@mongosh/js-multiline-to-singleline'
lerna WARN complete Waiting for 2 child processes to exit. CTRL-C to exit immediately.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Command '['/bin/bash', '--norc', '--noprofile', '/tmp/ypkg-build5zsT62']' returned non-zero exit status 2
Environment
- [X] Is system up to date?
Repo
Unstable
Desktop Environment
Budgie
System details
N/A
Other comments
No response
Add this to your setup somewhere:
# Bug in newer npm: https://github.com/npm/cli/issues/6842
yarn global add node-gyp
Copied from the vscode package.yml.
That fixed the gyp not found issue. Thanks! I've updated the description to include the new build failure.