
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
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 0 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.