安装命令没有固定依赖版本
原文依据:1 处安装命令没有指定依赖版本。同样的命令以后可能下载不同代码,你实际安装的内容可能与这次检查时不同。
即使命令和报告没变,以后安装时也可能下载到另一份代码。
这是实际的安装指令,`npm install gsap` 未指定版本;用户执行时,npm 会解析当时可用的版本,因此不同时间安装的代码可能不同,降低可复现性,并使未来版本或供应链变更进入项目。该证据不表示软件包已恶意。用户可要求作者注明已验证的版本,并在项目中使用锁文件及锁定安装。
- ✅ Install everything from the public `gsap` npm package: `npm install gsap`. All plugins are included — import them as `gsap/SplitText`, `gsap/MorphSVGPlugin`, etc.- ❌ Do **not** generate an `.npmrc` with a GreenSock auth token, suggest the private `npm.greensock.com` registry, or tell users to sign up for Club GSAP to access a plugin. Those instructions are outdated.