没有合适的资源?快使用搜索试试~ 我知道了~
allow-scripts:执行允许的“ npm install”生命周期脚本
共31个文件
json:18个
js:5个
txt:4个
需积分: 34 0 下载量 107 浏览量
2021-05-13
10:07:02
上传
评论
收藏 14KB ZIP 举报
温馨提示
允许脚本 执行允许的npm install生命周期脚本。 tl; dr 将您信任的package.json软件包列入白名单: "allowScripts": { "packageName": "1.xx - 2.xx" } 运行npm install --ignore-scripts或yarn install --ignore-scripts 运行npx allow-scripts 仅执行明确允许的[pre|post]install脚本。 用法 $ npx allow-scripts [--dry-run] 运行该命令将扫描已安装的依赖项列表(使用现有的package-lock.json或npm-shrinkwrap.json package-lock.json或动态创建一个)。 然后,它将为具有以下顺序的允许依赖项执行脚本: preinstall在主软件包中 在依赖项中pre
资源推荐
资源详情
资源评论
收起资源包目录
allow-scripts-master.zip (31个子文件)
allow-scripts-master
.travis.yml 160B
.eslintrc 45B
.releaserc.js 114B
bin
allow-scripts.js 443B
renovate.json 70B
package.json 740B
test
index.js 8KB
fixtures
allowed-false.json 339B
deep.json 365B
with-cycles.json 353B
nothing-allowed.json 229B
index.js 2KB
with-postinstall-script.json 190B
allowed-semver.json 342B
basic.full.txt 218B
without-scripts.json 82B
cycle-b.json 203B
without-install-scripts.json 132B
cycle-a.json 203B
with-cycles.txt 96B
basic.json 777B
not-in-allowed.json 297B
with-preinstall-script.json 186B
cycle-c.json 203B
with-install-script.json 174B
basic.dry-run.txt 392B
invalid-semver.json 355B
deep.txt 177B
.gitignore 29B
lib
index.js 5KB
README.md 2KB
共 31 条
- 1
资源评论
晨曦姜
- 粉丝: 57
- 资源: 4661
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功