You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Hyperledger Composer安装问题:安装CLI及开发工具遇npm弃用警告

Understanding & Resolving npm Deprecation Warnings During Hyperledger Composer CLI Installation

Hey there, don’t stress too much about these warnings—they’re mostly npm’s way of flagging outdated dependencies that the Hyperledger Composer CLI relies on, not immediate showstoppers. Let’s break down each one and talk about how to handle them:

  • fs-promise@1.0.0 Deprecation:

    npm WARN deprecated fs-promise@1.0.0: 使用mz或fs-extra^3.0版本以支持Promise
    This old package for promise-based file system operations has been replaced by more reliable alternatives. If you’re not directly using fs-promise in your own code, this is just a downstream dependency of the Composer CLI. To fix it, you can install fs-extra@^3.0 or mz in your project directory—npm will prioritize these updated packages over the deprecated one where possible.

  • crypto@0.0.3 Deprecation:

    npm WARN deprecated crypto@0.0.3: 该包不再受支持,现已成为Node内置模块,若依赖crypto请切换至内置版本
    The standalone crypto npm package is obsolete because Node.js now includes a fully maintained crypto module natively. The Composer CLI is probably relying on an older dependency that still references this outdated package. You don’t need to install anything extra here—future updates to the Composer CLI should automatically switch to using Node’s built-in crypto module.

  • jade@1.11.0 Deprecation:

    npm WARN deprecated jade@1.11.0: Jade已更名为pug,请安装最新版本的pug替代jade
    Jade was rebranded to Pug years ago. This warning comes from a dependency of the Composer CLI that hasn’t been updated yet. You can install the latest pug package in your project to suppress the warning, but keep in mind the Composer CLI might still reference jade internally—full resolution would require an upstream update from the Hyperledger team.

Quick Tips to Manage These Warnings:

  1. Update the Composer CLI: Run npm update -g composer-cli to check for a newer version of the CLI that might have already swapped out these deprecated dependencies.
  2. Ignore Temporarily If It Works: If your CLI is functioning as expected after installation, these warnings are just informational—you can keep using your setup until you’re ready to update.
  3. Trace Dependency Chains: Use npm ls <package-name> (e.g., npm ls jade) to see exactly which package is pulling in the deprecated module, if you want to dig deeper.

内容的提问来源于stack exchange,提问作者Swap

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.21 03:27:45