google / schedviz

A tool for gathering and visualizing kernel scheduling traces on Linux machines
Apache License 2.0
519 stars 34 forks source link

Failure to start: "Unknown token" #54

Open zlacelle opened 1 year ago

zlacelle commented 1 year ago

node version 16.19.0 yarn version 3.4.1 building at commit 0beae2e472bec9e6cc5a4754f37eb68257eda8fe

Actual error:

(error An unexpected error occurred: "Unknown token: { line: 3, col: 2, type: 'INVALID', value: undefined } 3:2 in /home/zlacelle/schedviz/yarn.lock".
)
ERROR: no such package '@npm//': yarn_install failed: yarn install v1.13.0

When running the bazel command, get the following:

INFO: Writing tracer profile to '/home/zlacelle/.cache/bazel/_bazel_zlacelle/f394b6cfc4dc0f4f553cf5228e672989/command.profile.gz'
INFO: Call stack for the definition of repository 'npm' which is a yarn_install (rule definition at /home/zlacelle/.cache/bazel/_bazel_zlacelle/f394b6cfc4dc0f4f553cf5228e672989/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl:382:16):
 - /home/zlacelle/.cache/bazel/_bazel_zlacelle/f394b6cfc4dc0f4f553cf5228e672989/external/build_bazel_rules_nodejs/defs.bzl:82:5
 - /home/zlacelle/schedviz/WORKSPACE:87:1
ERROR: An error occurred during the fetch of repository 'npm':
   yarn_install failed: yarn install v1.13.0
info If you think this is a bug, please open a bug report with the information provided in "/home/zlacelle/schedviz/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
 (error An unexpected error occurred: "Unknown token: { line: 3, col: 2, type: 'INVALID', value: undefined } 3:2 in /home/zlacelle/schedviz/yarn.lock".
)
ERROR: no such package '@npm//': yarn_install failed: yarn install v1.13.0
info If you think this is a bug, please open a bug report with the information provided in "/home/zlacelle/schedviz/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
 (error An unexpected error occurred: "Unknown token: { line: 3, col: 2, type: 'INVALID', value: undefined } 3:2 in /home/zlacelle/schedviz/yarn.lock".
)
ERROR: no such package '@npm//': yarn_install failed: yarn install v1.13.0
info If you think this is a bug, please open a bug report with the information provided in "/home/zlacelle/schedviz/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
 (error An unexpected error occurred: "Unknown token: { line: 3, col: 2, type: 'INVALID', value: undefined } 3:2 in /home/zlacelle/schedviz/yarn.lock".
)
INFO: Elapsed time: 0.229s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)

Initial yarn install output:

➤ YN0000: ┌ Resolution step
➤ YN0061: │ protractor@npm:6.0.0 is deprecated: We have news to share - Protractor is deprecated and will reach end-of-life by Summer 2023. To learn more and find out about other options please refer to this post on the Angular blog. Thank you for using and contributing to Protractor. https://goo.gle/state-of-e2e-in-angular
➤ YN0061: │ chokidar@npm:2.1.6 is deprecated: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
➤ YN0061: │ sourcemap-codec@npm:1.4.4 is deprecated: Please use @jridgewell/sourcemap-codec instead
➤ YN0061: │ fsevents@npm:1.2.9 is deprecated: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
➤ YN0061: │ debug@npm:3.2.6 is deprecated: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
➤ YN0061: │ request@npm:2.88.0 is deprecated: request has been deprecated, see https://github.com/request/request/issues/3142
➤ YN0061: │ @bazel/bazel@npm:1.0.0 is deprecated: @bazel/bazel is deprecated, please use @bazel/bazelisk instead
➤ YN0032: │ nan@npm:2.14.0: Implicit dependencies on node-gyp are discouraged
➤ YN0061: │ debug@npm:4.1.1 is deprecated: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
➤ YN0061: │ node-pre-gyp@npm:0.12.0 is deprecated: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
➤ YN0061: │ har-validator@npm:5.1.3 is deprecated: this library is no longer supported
➤ YN0061: │ uuid@npm:3.3.2 is deprecated: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
➤ YN0061: │ nomnom@npm:1.8.1 is deprecated: Package no longer supported. Contact support@npmjs.com for more info.
➤ YN0061: │ ini@npm:1.3.5 is deprecated: Please update to ini >=1.3.6 to avoid a prototype pollution issue
➤ YN0061: │ source-map-resolve@npm:0.5.2 is deprecated: See https://github.com/lydell/source-map-resolve#deprecated
➤ YN0061: │ read-package-tree@npm:5.3.1 is deprecated: The functionality that this package provided is now in @npmcli/arborist
➤ YN0061: │ source-map-url@npm:0.4.0 is deprecated: See https://github.com/lydell/source-map-url#deprecated
➤ YN0061: │ resolve-url@npm:0.2.1 is deprecated: https://github.com/lydell/resolve-url#deprecated
➤ YN0061: │ urix@npm:0.1.0 is deprecated: Please see https://github.com/lydell/urix#deprecated
➤ YN0061: │ readdir-scoped-modules@npm:1.0.2 is deprecated: This functionality has been moved to @npmcli/fs
➤ YN0061: │ set-value@npm:2.0.0 is deprecated: Critical bug fixed in v3.0.1, please upgrade to the latest version.
➤ YN0061: │ set-value@npm:0.4.3 is deprecated: Critical bug fixed in v3.0.1, please upgrade to the latest version.
➤ YN0061: │ node-fetch-npm@npm:2.0.2 is deprecated: This module is not used anymore, npm uses minipass-fetch for its fetch implementation now
➤ YN0061: │ @npmcli/move-file@npm:2.0.1 is deprecated: This functionality has been moved to @npmcli/fs
➤ YN0061: │ @schematics/update@npm:0.801.0 is deprecated: This was an internal-only Angular package up through Angular v11 which is no longer used or maintained. Upgrade Angular to v12+ to remove this dependency.
➤ YN0061: │ @bazel/typescript@npm:0.32.2 is deprecated: This package is no longer maintained, see https://github.com/aspect-build/rules_ts for replacement
➤ YN0061: │ @bazel/hide-bazel-files@npm:0.32.2 is deprecated: This package is a workaround for an issue prior to Bazel 2.1. If you are on Bazel 2.1 or later, you should not need this, because the .bazelignore file contains node_modules so that Bazel doesn't try to read packages from this directory.
➤ YN0061: │ puppeteer@npm:0.13.0 is deprecated: < 19.2.0 is no longer supported
➤ YN0061: │ mkdirp@npm:0.5.1 is deprecated: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
➤ YN0061: │ @bazel/karma@npm:0.32.2 is deprecated: As of https://github.com/bazelbuild/rules_nodejs/releases/tag/3.0.0 use @bazel/concatjs instead
➤ YN0061: │ log4js@npm:4.3.1 is deprecated: 4.x is no longer supported. Please upgrade to 6.x or higher.
➤ YN0061: │ core-js@npm:2.6.9 is deprecated: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
➤ YN0061: │ date-format@npm:2.0.0 is deprecated: 2.x is no longer supported. Please upgrade to 4.x or higher.
➤ YN0061: │ streamroller@npm:1.0.5 is deprecated: 1.x is no longer supported. Please upgrade to 3.x or higher.
➤ YN0002: │ @bazel/typescript@npm:0.32.2 doesn't provide typescript (p7a668), requested by tsutils
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed in 3s 523ms
➤ YN0000: ┌ Fetch step
➤ YN0013: │ zone.js@npm:0.9.1 can't be found in the cache and will be fetched from the remote registry
➤ YN0019: │ @bazel-typescript-npm-5.7.3-7db63b054c-b97e16d871.zip appears to be unused - removing
➤ YN0019: │ @bazel-worker-npm-5.7.3-95aece651d-e109b8d12f.zip appears to be unused - removing
➤ YN0019: │ google-protobuf-npm-3.21.2-7c82de39ab-3caa2e1e26.zip appears to be unused - removing
➤ YN0019: │ tsutils-npm-3.21.0-347e6636c5-1843f4c1b2.zip appears to be unused - removing
➤ YN0000: └ Completed in 0s 656ms
➤ YN0000: ┌ Link step
➤ YN0007: │ protobufjs@npm:6.8.8 must be built because it never has been before or the last one failed
➤ YN0008: │ schedviz@workspace:. must be rebuilt because its dependency tree changed
➤ YN0000: └ Completed in 7s 842ms
➤ YN0000: Done with warnings in 12s 93ms