
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
auto-package-lock
Advanced tools
1. 项目 A 安装了依赖软件 B,B 项目内自己依赖了上游库 C。 2. 现 C 出现了 CVE 漏洞,社区发布了新版本修补了漏洞。 3. 但是 B 并未发布新版本引入 C 的无漏洞版本。 4. A 想要避免项目中出现 C 的漏洞,但无法简单通过`npm install C@4.0.7`命令安装指定版本,因为在 package.json 中 A 只与 B 有依赖关系。 5. 因此需要手动修改 A 项目中的 package-lock.json 文件
npm install C@4.0.7
命令安装指定版本,因为在 package.json 中 A 只与 B 有依赖关系。npm install -g auto-package-lock
apkl -p 目标项目路径 -m 指定的库名及版本
举例:
apkl -p ../demo2 -m deepmerge@4.2.2
apkl -p /e/projects/js/demo2 -m throttle-debounce@3.0.1
cd
进入工具路径,npm install
安装依赖node ./index.js -p 目标项目路径 -m 指定的库名及版本
举例:
node ./index.js -p ../demo2 -m deepmerge@4.2.2
node ./index.js -p /e/projects/js/demo2 -m throttle-debounce@3.0.1
两个必需参数
npm install --no-save
安装依赖。npm install
安装依赖FAQs
1. 项目 A 安装了依赖软件 B,B 项目内自己依赖了上游库 C。 2. 现 C 出现了 CVE 漏洞,社区发布了新版本修补了漏洞。 3. 但是 B 并未发布新版本引入 C 的无漏洞版本。 4. A 想要避免项目中出现 C 的漏洞,但无法简单通过`npm install C@4.0.7`命令安装指定版本,因为在 package.json 中 A 只与 B 有依赖关系。 5. 因此需要手动修改 A 项目中的 package-lock.json 文件
The npm package auto-package-lock receives a total of 1 weekly downloads. As such, auto-package-lock popularity was classified as not popular.
We found that auto-package-lock demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.