Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn & brew & MBP 2018 #10

Open
xgqfrms opened this issue Sep 12, 2018 · 10 comments
Open

yarn & brew & MBP 2018 #10

xgqfrms opened this issue Sep 12, 2018 · 10 comments
Labels
bower bower brew brew vue cli vue cli yarn & brew & MBP 2018 yarn & brew & MBP 2018 yarn yarn

Comments

@xgqfrms
Copy link
Owner

xgqfrms commented Sep 12, 2018

yarn

https://yarnpkg.com/zh-Hans/docs/install#alternatives-stable

$ curl -o- -L https://yarnpkg.com/install.sh | bash

brew

https://yarnpkg.com/zh-Hans/docs/install#mac-stable

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

$ brew install yarn

bower

A package manager for the web

$ npm install -g bower

https://github.com/bower/bower

https://bower.io/

@xgqfrms xgqfrms added the yarn & brew & MBP 2018 yarn & brew & MBP 2018 label Sep 12, 2018
Repository owner locked and limited conversation to collaborators Sep 12, 2018
@xgqfrms
Copy link
Owner Author

xgqfrms commented Sep 12, 2018

@xgqfrms
Copy link
Owner Author

xgqfrms commented Sep 12, 2018

image

@xgqfrms
Copy link
Owner Author

xgqfrms commented Sep 13, 2018

yarn

https://yarnpkg.com/en/docs/cli/

# 安装项目的全部依赖

$ yarn
# 或者
$ yarn install

chrome-scale-mbp

https://yarnpkg.com/zh-Hans/docs/usage

i➜ ce-vue-app yarn -h

  Usage: yarn [command] [flags]

  Displays help information.

  Options:

    -h, --help                          output usage information
    -v, --version                       output the version number
    --no-default-rc                     prevent Yarn from automatically detecting yarnrc and npmrc files
    --use-yarnrc <path>                 specifies a yarnrc file that Yarn should use (.yarnrc only, not .npmrc)
    --verbose                           output verbose messages on internal operations
    --offline                           trigger an error if any required dependencies are not available in local cache
    --prefer-offline                    use network only if dependencies are not available in local cache
    --strict-semver
    --json                              format Yarn log messages as lines of JSON (see jsonlines.org)
    --ignore-scripts                    don't run lifecycle scripts
    --har                               save HAR output of network traffic
    --ignore-platform                   ignore platform checks
    --ignore-engines                    ignore engines check
    --ignore-optional                   ignore optional dependencies
    --force                             install and build packages even if they were built before, overwrite lockfile
    --skip-integrity-check              run install without checking if node_modules is installed
    --check-files                       install will verify file tree of packages for consistency
    --no-bin-links                      don't generate bin links when setting up packages
    --flat                              only allow one version of a package
    --prod, --production [prod]
    --no-lockfile                       don't read or generate a lockfile
    --pure-lockfile                     don't generate a lockfile
    --frozen-lockfile                   don't generate a lockfile and fail if an update is needed
    --update-checksums                  update package checksums from current repository
    --link-duplicates                   create hardlinks to the repeated modules in node_modules
    --link-folder <path>                specify a custom folder to store global links
    --global-folder <path>              specify a custom folder to store global packages
    --modules-folder <path>             rather than installing modules into the node_modules folder relative to the cwd, output them here
    --preferred-cache-folder <path>     specify a custom folder to store the yarn cache if possible
    --cache-folder <path>               specify a custom folder that must be used to store the yarn cache
    --mutex <type>[:specifier]          use a mutex to ensure only one yarn instance is executing
    --emoji [bool]                      enable emoji in output
    -s, --silent                        skip Yarn console logs, other types of logs (script output) will be printed
    --cwd <cwd>                         working directory to use
    --proxy <host>
    --https-proxy <host>
    --registry <url>                    override configuration registry
    --no-progress                       disable progress bar
    --network-concurrency <number>      maximum number of concurrent network requests
    --network-timeout <milliseconds>    TCP timeout for network requests
    --non-interactive                   do not show interactive prompts
    --scripts-prepend-node-path [bool]  prepend the node executable dir to the PATH in scripts
    --no-node-version-check             do not warn when using a potentially unsupported Node version
    --focus                             Focus on a single workspace by installing remote copies of its sibling workspaces.

  Commands:
    - access
    - add
    - autoclean
    - bin
    - cache
    - check
    - config
    - create
    - exec
    - generate-lock-entry / generateLockEntry
    - global
    - help
    - import
    - info
    - init
    - install
    - licenses
    - link
    - list
    - login
    - logout
    - node
    - outdated
    - owner
    - pack
    - publish
    - remove
    - run
    - tag
    - team
    - unlink
    - upgrade
    - upgrade-interactive / upgradeInteractive
    - version
    - versions
    - why
    - workspace
    - workspaces

  Run `yarn help COMMAND` for more information on specific commands.
  Visit https://yarnpkg.com/en/docs/cli/ to learn more about Yarn.

➜  ice-vue-app

@xgqfrms xgqfrms added yarn yarn brew brew bower bower labels Sep 13, 2018
@xgqfrms
Copy link
Owner Author

xgqfrms commented Sep 13, 2018

@xgqfrms

This comment has been minimized.

@xgqfrms
Copy link
Owner Author

xgqfrms commented Sep 13, 2018

@xgqfrms
Copy link
Owner Author

xgqfrms commented Sep 13, 2018

install

https://yarnpkg.com/zh-Hans/docs/cli/add#toc-yarn-add-dev-d

$ yarn add

$ yarn add -D babel-loader
$ yarn add -P babel-loader

$ yarn add -O babel-loader
$ yarn add -E babel-loader
$ yarn add -T babel-loader

@xgqfrms
Copy link
Owner Author

xgqfrms commented Sep 13, 2018

@xgqfrms
Copy link
Owner Author

xgqfrms commented May 21, 2019

@xgqfrms xgqfrms added the vue cli vue cli label May 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bower bower brew brew vue cli vue cli yarn & brew & MBP 2018 yarn & brew & MBP 2018 yarn yarn
Projects
None yet
Development

No branches or pull requests

1 participant