npm rebuild
重建一个包
概要
npm rebuild [<package-spec>] ...]
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=
bin-links
- cpHcqTIrxEt4f28KOhZfPkO0zLmYjUTFDL8JP5iAFTumKS0+8TtVbaOqA6c8BSfqpTTv+J/OldznbRcggUCKYg==
mDcYyLmNjMkVsvMpyZ40UqyOJg5ujuCwENjy7FoMIWM6iXU05XatPqnTOU1/Xu0aTNRPhFRn16B3JD5K1gJ4H+qYRQpS0/f9B1JLJZK7hATrH5r5KipQDTPZuBlKM+Adg21V+TKhEsFbMqe5RTWNUw==
dUumT3tQeTYc9GIEnxRqD3/bq+/7Z/3xZmmTb34ToED6D3kRPimdCpmqBgGvip6Y3jq3N9C9ByrJKl2M0/jzwkTkeFNr6pmLgIDt2rOgi0BrbVMkDwayTbRalauoF3kQWAPufoMYy/qdnCWtTRF9OMVkP1tNmKupnCKv+YRziegmhrFbAlNiwI9v0SIAwcZQxgSyuStIOJbwAe68TrCjigpU7SO19GUhbpQUZI4yP/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