
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
npm包的软链接
在用react的时候总是需要全家桶,什么babel webpack等,差不多一个项目的node_modules就要
100M以上,然后在想在每个项目能不能复用babel和webpack等公用库。
然后就知道了linux软链接的功能;
每一个项目的node_modules的库基本都是软链接公用node_modules的,功能基本不会丢失,
每一个库都是软链接的大小。
npm install -g npm-ln
配置
在 config.js 里面配置 INSTALLED_PATH,这个是公用库的路径;
NODE_MODULES_PATH这个是安装到项目的哪个位置,默认是安装到
node_modules;
命令
npm-ln install 包名;npm-ln install 会在package.json里面找并安装依赖;npm-ln install --saveFAQs
npm install modules 实现软链接
The npm package npm-ln receives a total of 0 weekly downloads. As such, npm-ln popularity was classified as not popular.
We found that npm-ln 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.