读书笔记-2019年04月01日

今日见闻

今日重要的三件事:

  1. 工作,升级13个第三方库。
  2. flutter基础控件。
  3. 三月和四月财务清理。

记录

1. NPM依赖包版本号~和^和*的区别 - Yumao_的博客 - ****博客

读书笔记-2019年04月01日

MacOS安装nvm

在终端运行这个命令

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash

以下是终端日志:

Panda-MBP:~ panda8z$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13226  100 13226    0     0   4164      0  0:00:03  0:00:03 --:--:--  4165
=> Downloading nvm from git to '/Users/panda8z/.nvm'
=> Cloning into '/Users/panda8z/.nvm'...
remote: Enumerating objects: 278, done.
remote: Counting objects: 100% (278/278), done.
remote: Compressing objects: 100% (249/249), done.
remote: Total 278 (delta 33), reused 88 (delta 16), pack-reused 0
Receiving objects: 100% (278/278), 142.36 KiB | 29.00 KiB/s, done.
Resolving deltas: 100% (33/33), done.
=> Compressing and cleaning up git repository

=> Appending nvm source string to /Users/panda8z/.bash_profile
=> Appending bash_completion source string to /Users/panda8z/.bash_profile
=> You currently have modules installed globally with `npm`. These will no
=> longer be linked to the active version of Node when you install a new node
=> with `nvm`; and they may (depending on how you construct your `$PATH`)
=> override the binaries of modules installed with `nvm`:

/usr/local/lib
├── @vue/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
=> If you wish to uninstall them at a later point (or re-install them under your
=> `nvm` Nodes), you can remove them from the system Node as follows:

     $ nvm use system
     $ npm uninstall -g a_module

=> Close and reopen your terminal to start using nvm or run the following to use it now:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
Panda-MBP:~ panda8z$ 

MacOS安装rvm

在终端运行以下命令:

curl https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer | bash -s stable

以下是终端日志:



Panda-MBP:~ panda8z$ curl https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer | bash -s stable
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 24173  100 24173    0     0  18897      0  0:00:01  0:00:01 --:--:-- 18899
Downloading https://github.com/rvm/rvm/archive/1.29.7.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.29.7/1.29.7.tar.gz.asc
Found PGP signature at: 'https://github.com/rvm/rvm/releases/download/1.29.7/1.29.7.tar.gz.asc',
but no GPG software exists to validate it, skipping.
Installing RVM to /Users/panda8z/.rvm/
    Adding rvm PATH line to /Users/panda8z/.profile /Users/panda8z/.mkshrc /Users/panda8z/.bashrc /Users/panda8z/.zshrc.
    Adding rvm loading line to /Users/panda8z/.profile /Users/panda8z/.bash_profile /Users/panda8z/.zlogin.
Installation of RVM in /Users/panda8z/.rvm/ is almost complete:

  * To start using RVM you need to run `source /Users/panda8z/.rvm/scripts/rvm`
    in all your open shell windows, in rare cases you need to reopen all shell windows.
Panda-MBP:~ panda8z$