npm rebuild

重建一个包

概要

npm rebuild [[<@scope>/]<name>[@<version>] ...]

alias: rb

描述

此命令对匹配的文件夹运行 npm build 命令。这在您安装新版本的 node 时很有用,并且必须使用新的二进制文件重新编译所有 C++ 插件。在使用 --ignore-scripts--no-bin-links 安装时,它也很有用,可以显式选择要构建和/或链接箱的包。

如果提供了一个或多个包名称(以及可选的版本范围),则只有名称和版本与其中一个说明符匹配的包才会被重建。

配置

global

  • 默认值:false
  • 类型:布尔值

在 "global" 模式下运行,以便将包安装到 prefix 文件夹而不是当前工作目录。有关行为差异的更多信息,请参见 文件夹

    smn9uuHxnLt34/rrmggygKrhq4zPnri/0FAxcT9hcrs9YzCK+kp45is7U1R7g5Dp4ipee0t1gq+cyESthyPw0WIoek2ZBEL+HH3vFkEws2uflmz+2qE3eQGoeXSU8B1gjgzS9SPE/OCLcbwyy/vgnnaQNIpXGc6VoysgvM2CV6NXvURBm83MEyWsgPg9rlzDZxP+2wVpmOThyjShv5STaelvcrw9AGKxTiO1iB6RotGdnTZI0Bi72JK0mXz2mROPbPcaCDWDIAW4pcGhrc0m+90WFIKE4EmMuW1glw5ja2Y=
    cpHcqTIrxEt4f28KOhZfPkO0zLmYjUTFDL8JP5iAFTumKS0+8TtVbaOqA6c8BSfqpTTv+J/OldznbRcggUCKYg==

mDcYyLmNjMkVsvMpyZ40UqyOJg5ujuCwENjy7FoMIWM6iXU05XatPqnTOU1/Xu0aTNRPhFRn16B3JD5K1gJ4H+qYRQpS0/f9B1JLJZK7hATrH5r5KipQDTPZuBlKM+Adg21V+TKhEsFbMqe5RTWNUw==

dUumT3tQeTYc9GIEnxRqD3/bq+/7Z/3xZmmTb34ToED6D3kRPimdCpmqBgGvip6Y3jq3N9C9ByrJKl2M0/jzwkTkeFNr6pmLgIDt2rOgi0BrbVMkDwayTbRalauoF3kQWAPufoMYy/qdnCWtTRF9OMVkP1tNmKupnCKv+YRziegmhrFbAlNiwI9v0SIAwcZQxgSyuStIOJbwAe68TrCjigpU7SO19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