Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.
This repository was archived by the owner on May 6, 2025. It is now read-only.

npm安装不成功,yarn安装成功但是查询不到版本号 #36

@FuMoDiana

Description

@FuMoDiana

node版本是16.14,npm是8.5
npm安装:

 npm WARN deprecated read-package-tree@5.2.1: The functionality that this package provided is now in @npmcli/arborist
  npm WARN deprecated readdir-scoped-modules@1.1.0: This functionality has been moved to @npmcli/fs
  npm WARN deprecated babel-preset-es2015@6.24.1: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!
  npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
  npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
  npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
  npm WARN deprecated har-validator@5.1.5: this library is no longer supported
  npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
  npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
  npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
  npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
  npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
  npm WARN deprecated uuid@3.4.0: 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.
  npm WARN deprecated uuid@3.4.0: 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.
  npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
  npm WARN deprecated core-js@2.6.12: 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.
  npm WARN deprecated core-js@2.6.12: 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.
  
  changed 2241 packages in 1m

yarn安装:

yarn global v1.22.5
[1/4] Resolving packages...
[2/4] Fetching packages...
warning Pattern ["util@^0.12.4"] is trying to unpack in the same destination "C:\\Users\\24051\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-util-polyfill-0.12.5-5f17a6059b73db61a875668781a1c2b136bd6fbc-integrity\\node_modules\\node-util-polyfill" as pattern ["node-util-polyfill@npm:util@^0.12.5"]. This could result in non-deterministic behavior, skipping.
info fsevents@2.3.2: The platform "win32" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "win32" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/core-darwin-arm64@1.3.36: The platform "win32" is incompatible with this module.
info "@swc/core-darwin-arm64@1.3.36" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/core-darwin-arm64@1.3.36: The CPU architecture "x64" is incompatible with this module.
info @swc/core-darwin-x64@1.3.36: The platform "win32" is incompatible with this module.
info "@swc/core-darwin-x64@1.3.36" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/core-linux-arm-gnueabihf@1.3.36: The platform "win32" is incompatible with this module.
info "@swc/core-linux-arm-gnueabihf@1.3.36" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/core-linux-arm-gnueabihf@1.3.36: The CPU architecture "x64" is incompatible with this module.
info @swc/core-linux-arm64-gnu@1.3.36: The platform "win32" is incompatible with this module.
info "@swc/core-linux-arm64-gnu@1.3.36" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/core-linux-arm64-gnu@1.3.36: The CPU architecture "x64" is incompatible with this module.
info @swc/core-linux-arm64-musl@1.3.36: The platform "win32" is incompatible with this module.
info "@swc/core-linux-arm64-musl@1.3.36" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/core-linux-arm64-musl@1.3.36: The CPU architecture "x64" is incompatible with this module.
info @swc/core-linux-x64-gnu@1.3.36: The platform "win32" is incompatible with this module.
info "@swc/core-linux-x64-gnu@1.3.36" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/core-linux-x64-musl@1.3.36: The platform "win32" is incompatible with this module.
info "@swc/core-linux-x64-musl@1.3.36" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/core-win32-arm64-msvc@1.3.36: The CPU architecture "x64" is incompatible with this module.
info "@swc/core-win32-arm64-msvc@1.3.36" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/core-win32-ia32-msvc@1.3.36: The CPU architecture "x64" is incompatible with this module.
info "@swc/core-win32-ia32-msvc@1.3.36" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "@cloudbase/cli > @cloudbase/lowcode-cli > @cloudbase/lowcode-builder > @cloudbase/lowcode-generator > @cloudbase/weda-client@0.2.45" has unmet peer dependency "@tcwd/weapps-sdk@1.2.12".
warning "@cloudbase/cli > @cloudbase/lowcode-cli > @cloudbase/lowcode-builder > @cloudbase/lowcode-generator > @cloudbase/weda-client@0.2.45" has unmet peer dependency "@zxing/library@^0.18.6".
warning "@cloudbase/cli > @cloudbase/lowcode-cli > @cloudbase/lowcode-builder > @cloudbase/lowcode-generator > @cloudbase/weda-client@0.2.45" has unmet peer dependency "lodash-es@^4.17.19".
warning "@cloudbase/cli > @cloudbase/lowcode-cli > @cloudbase/lowcode-builder > @cloudbase/lowcode-generator > @formily/react-schema-renderer@1.1.7" has unmet peer dependency "@types/react@^16.8.23".
warning "@cloudbase/cli > @cloudbase/lowcode-cli > @cloudbase/lowcode-builder > @cloudbase/lowcode-generator > @formily/react-schema-renderer > @formily/core@1.3.17" has unmet peer dependency "scheduler@>=0.11.2".
warning "@cloudbase/cli > @cloudbase/lowcode-cli > @cloudbase/lowcode-builder > @cloudbase/lowcode-generator > @formily/react-schema-renderer > @formily/react@1.3.17" has unmet 
peer dependency "@types/react@^16.8.23".
[4/4] Building fresh packages...
success Installed "@cloudbase/cli@2.2.3" with binaries:
      - tcb
      - cloudbase
Done in 19.07s.

但是执行cloudbase -h:

λ cloudbase -h
bash: cloudbase: command not found

执行tcb -v:

λ tcb -v
bash: tcb: command not found

管理者开启终端安装结果同上。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions