Zak*_*oli 40 node.js npm reify
当通过“npx create-react-app [app_name]”创建反应应用程序时,我注意到控制台日志类似 [##############] IdealTree:[package-name]... 和然后用“reify”而不是“idealTree”做同样的事情。当我搜索这些术语的含义时,我只看到与软件包安装失败相关的问题。
Ort*_*kni 35
idealTreenpm 源代码文件validate-lockfile.js中解释了其含义:
// compares the inventory of package items in the tree
// that is about to be installed (idealTree) with the inventory
// of items stored in the package-lock file (virtualTree)
Run Code Online (Sandbox Code Playgroud)
AnidealTree就是即将安装的树。
用通俗语言来说,具体化的意思是:
使(抽象的事物)更加具体或真实。
那么具体化就是具体化的过程或结果。
在npm的上下文中,我们可以从npm源代码文件tree-types.md中推断出含义:
在具体化过程中,将其
idealTree与实际树进行比较,然后将理想树中的节点提取到磁盘上。
在 npm 的上下文中,我们可以说reify意味着将 IdealTree 具体化。