如何生成shrinkwrap文件?

时间:2021-06-19 09:46:13

When locking down node modules using shrinkwrap, how is the npm-shrinkwrap.json file generated? Does it recursively check node_modules folder and get it's info there?

使用shrinkwrap锁定节点模块时,如何生成npm-shrinkwrap.json文件?它是否以递归方式检查node_modules文件夹并在那里获取它的信息?

I'm asking because I did a npm install successfully behind a proxy which translated github repo's to an internal artifactory repo, but the generated shrinkwrap contains urls directly to github (what I don't want)

我问是因为我成功地在代理后面进行了npm安装,它将github repo转换为内部神器仓库,但是生成的shrinkwrap直接包含了对github的URL(我不想要的)

1 个解决方案

#1


1  

write npm shrinkwrap in your terminal folder which contains package.json file which will genrate npm-shrinkwrap.json file

在您的终端文件夹中写入npm shrinkwrap,其中包含将生成npm-shrinkwrap.json文件的package.json文件

Ya this will check recursively in your node module folder of directory.

Ya这将在目录的节点模块文件夹中递归检查。

#1


1  

write npm shrinkwrap in your terminal folder which contains package.json file which will genrate npm-shrinkwrap.json file

在您的终端文件夹中写入npm shrinkwrap,其中包含将生成npm-shrinkwrap.json文件的package.json文件

Ya this will check recursively in your node module folder of directory.

Ya这将在目录的节点模块文件夹中递归检查。