如何自动选择npm安装选项?
我使用circleCI并做了一个config.yml。
CircleCI继续失败。
我无法继续选择选项。
这是脚本:
version: 2
工作: 建立: 码头工人: #在此处指定所需的版本 -图片:circleci / node:latest
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: yarn install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
# run tests!
- run: yarn test
结果...
有命令自动选择选项吗?