Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FuMoDiana opened this issue Feb 22, 2023 · 0 comments
Open

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

FuMoDiana opened this issue Feb 22, 2023 · 0 comments

Comments

@FuMoDiana
Copy link

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

 npm WARN deprecated [email protected]: The functionality that this package provided is now in @npmcli/arborist
  npm WARN deprecated [email protected]: This functionality has been moved to @npmcli/fs
  npm WARN deprecated [email protected]: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!
  npm WARN deprecated [email protected]: 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 [email protected]: See https://github.com/lydell/source-map-url#deprecated
  npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
  npm WARN deprecated [email protected]: this library is no longer supported
  npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
  npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
  npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
  npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
  npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
  npm WARN deprecated [email protected]: 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 [email protected]: 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 [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
  npm WARN deprecated [email protected]: 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 [email protected]: 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 [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/[email protected]: The platform "win32" is incompatible with this module.
info "@swc/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/[email protected]: The CPU architecture "x64" is incompatible with this module.
info @swc/[email protected]: The platform "win32" is incompatible with this module.
info "@swc/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/[email protected]: The platform "win32" is incompatible with this module.
info "@swc/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/[email protected]: The CPU architecture "x64" is incompatible with this module.
info @swc/[email protected]: The platform "win32" is incompatible with this module.
info "@swc/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/[email protected]: The CPU architecture "x64" is incompatible with this module.
info @swc/[email protected]: The platform "win32" is incompatible with this module.
info "@swc/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/[email protected]: The CPU architecture "x64" is incompatible with this module.
info @swc/[email protected]: The platform "win32" is incompatible with this module.
info "@swc/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/[email protected]: The platform "win32" is incompatible with this module.
info "@swc/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/[email protected]: The CPU architecture "x64" is incompatible with this module.
info "@swc/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @swc/[email protected]: The CPU architecture "x64" is incompatible with this module.
info "@swc/[email protected]" 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/[email protected]" has unmet peer dependency "@tcwd/[email protected]".
warning "@cloudbase/cli > @cloudbase/lowcode-cli > @cloudbase/lowcode-builder > @cloudbase/lowcode-generator > @cloudbase/[email protected]" has unmet peer dependency "@zxing/library@^0.18.6".
warning "@cloudbase/cli > @cloudbase/lowcode-cli > @cloudbase/lowcode-builder > @cloudbase/lowcode-generator > @cloudbase/[email protected]" has unmet peer dependency "lodash-es@^4.17.19".
warning "@cloudbase/cli > @cloudbase/lowcode-cli > @cloudbase/lowcode-builder > @cloudbase/lowcode-generator > @formily/[email protected]" 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/[email protected]" 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/[email protected]" has unmet 
peer dependency "@types/react@^16.8.23".
[4/4] Building fresh packages...
success Installed "@cloudbase/[email protected]" 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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant