xviz
xviz copied to clipboard
yarn couldn't bootstrap the server
Hi,
System: macos: 10.15.3 yarn: 1.13.0 node: 12, 13 (tried both)
As in the exmpale on https://avs.auto/#/xviz/getting-started/example-xviz-server got the clone of the repo, and hit "yarn bootstrap"
got the following error:
yarn run v1.13.0 $ yarn && ocular-bootstrap [1/5] 🔍 Validating package.json... [2/5] 🔍 Resolving packages... [3/5] 🚚 Fetching packages... [4/5] 🔗 Linking dependencies... warning " > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0". warning "@babel/plugin-proposal-class-properties > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0". warning " > [email protected]" has unmet peer dependency "@babel/core@^7.0.0". warning " > [email protected]" has unmet peer dependency "webpack@>=2". warning " > [email protected]" has unmet peer dependency "math.gl@^3.0.0". warning "ocular-dev-tools > [email protected]" has incorrect peer dependency "eslint@>= 3.0.0 < 5". warning "ocular-dev-tools > eslint-config-uber-es2015 > [email protected]" has incorrect peer dependency "eslint@>= 3.0.0 < 5". [5/5] 🔨 Building fresh packages... warning Error running install script for optional dependency: "/Users/pavels/Projects/work/POC/xviz/node_modules/fsevents: Command failed. Exit code: 1 Command: node-gyp rebuild Arguments: Directory: /Users/pavels/Projects/work/POC/xviz/node_modules/fsevents Output: gyp info it worked if it ends with ok gyp info using [email protected] gyp info using [email protected] | darwin | x64 gyp info find Python using Python version 3.8.0 found at "/Users/pavels/.pyenv/versions/3.8.0/bin/python" gyp info spawn /Users/pavels/.pyenv/versions/3.8.0/bin/python gyp info spawn args [ gyp info spawn args '/Users/pavels/Projects/work/POC/xviz/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 '/Users/pavels/Projects/work/POC/xviz/node_modules/fsevents/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/Users/pavels/Projects/work/POC/xviz/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/Users/pavels/Library/Caches/node-gyp/12.15.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=/Users/pavels/Library/Caches/node-gyp/12.15.0', gyp info spawn args '-Dnode_gyp_dir=/Users/pavels/Projects/work/POC/xviz/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/Users/pavels/Library/Caches/node-gyp/12.15.0/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/Users/pavels/Projects/work/POC/xviz/node_modules/fsevents', 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 ] No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'. No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'. No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/Users/pavels/Projects/work/POC/xviz/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:223:5)
gyp ERR! stack at Process.ChildProcess.handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 19.3.0
gyp ERR! command "/usr/local/bin/node" "/Users/pavels/Projects/work/POC/xviz/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /Users/pavels/Projects/work/POC/xviz/node_modules/fsevents
gyp ERR! node -v v12.15.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok"
info This module is OPTIONAL, you can safely ignore this error
success Saved lockfile.
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 🔨 Building fresh packages...
warning "[email protected]" has no binaries
[1/5] 🔍 Validating package.json...
[2/5] 🔍 Resolving packages...
success Already up-to-date.
npm WARN lifecycle The node binary used for scripts is /var/folders/4/98j89xkx6473kjx_k22bc3s00000gn/T/yarn--1584863948250-0.05265742522858874/node but npm is using /usr/local/bin/node itself. Use the --scripts-prepend-node-path
option to include the path for the node binary npm was executed with.
[email protected] build /Users/pavels/Projects/work/POC/xviz ocular-clean && yarn build-schema && lerna run pre-build && ocular-build
$ cd modules/schema && yarn build
$ npm run build-schema && npm run build-protos
npm WARN lifecycle The node binary used for scripts is /var/folders/4_/98j89xkx6473kjx_k22bc3s00000gn/T/yarn--1584863958292-0.7002921646922122/node but npm is using /usr/local/bin/node itself. Use the --scripts-prepend-node-path
option to include the path for the node binary npm was executed with.
@xviz/[email protected] build-schema /Users/pavels/Projects/work/POC/xviz/modules/schema node ./build-schema
55 files loaded from /Users/pavels/Projects/work/POC/xviz/modules/schema/schema
Writing to file /Users/pavels/Projects/work/POC/xviz/modules/schema/dist/schema.json
npm WARN lifecycle The node binary used for scripts is /var/folders/4_/98j89xkx6473kjx_k22bc3s00000gn/T/yarn--1584863958292-0.7002921646922122/node but npm is using /usr/local/bin/node itself. Use the --scripts-prepend-node-path
option to include the path for the node binary npm was executed with.
@xviz/[email protected] build-protos /Users/pavels/Projects/work/POC/xviz/modules/schema yarn pbjs --keep-case --target json --proto-path ../.. --out dist/proto.v2.json ../../xviz/v2/*.proto
$ /Users/pavels/Projects/work/POC/xviz/modules/schema/node_modules/.bin/pbjs --keep-case --target json --proto-path ../.. --out dist/proto.v2.json ../../xviz/v2/annotation.proto ../../xviz/v2/core.proto ../../xviz/v2/envelope.proto ../../xviz/v2/options.proto ../../xviz/v2/primitives.proto ../../xviz/v2/session.proto ../../xviz/v2/style.proto ../../xviz/v2/uiprimitives.proto installing jsdoc@^3.5.5 installing espree@^3.5.4 installing escodegen@^1.9.1 internal/modules/cjs/loader.js:796 throw err; ^
Error: Cannot find module 'escodegen' Require stack:
- /Users/pavels/Projects/work/POC/xviz/node_modules/protobufjs/cli/targets/static.js
- /Users/pavels/Projects/work/POC/xviz/node_modules/protobufjs/cli/util.js
- /Users/pavels/Projects/work/POC/xviz/node_modules/protobufjs/cli/pbjs.js
- /Users/pavels/Projects/work/POC/xviz/node_modules/protobufjs/bin/pbjs
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)
at Function.Module._load (internal/modules/cjs/loader.js:686:27)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.
(/Users/pavels/Projects/work/POC/xviz/node_modules/protobufjs/cli/targets/static.js:7:18) at Module._compile (internal/modules/cjs/loader.js:955:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10) at Module.load (internal/modules/cjs/loader.js:811:32) at Function.Module._load (internal/modules/cjs/loader.js:723:14) at Module.require (internal/modules/cjs/loader.js:848:19) { code: 'MODULE_NOT_FOUND', requireStack: [ '/Users/pavels/Projects/work/POC/xviz/node_modules/protobufjs/cli/targets/static.js', '/Users/pavels/Projects/work/POC/xviz/node_modules/protobufjs/cli/util.js', '/Users/pavels/Projects/work/POC/xviz/node_modules/protobufjs/cli/pbjs.js', '/Users/pavels/Projects/work/POC/xviz/node_modules/protobufjs/bin/pbjs' ] } error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @xviz/[email protected] build-protos: yarn pbjs --keep-case --target json --proto-path ../.. --out dist/proto.v2.json ../../xviz/v2/*.proto
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @xviz/[email protected] build-protos script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/pavels/.npm/_logs/2020-03-22T07_59_23_085Z-debug.log
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: ocular-clean && yarn build-schema && lerna run pre-build && ocular-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /Users/pavels/.npm/_logs/2020-03-22T07_59_23_151Z-debug.log error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Thanks.