MOE new report, a simple record of some easy to develop on the MAC environment configuration and installation methods
configurationcode .
Open the vscode project
- Press down in vscode
shift+command+p
, the inputpath
And press enter
Terminal software is recommendediTerm2
usezshTo optimize the terminal
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Note: Global parameters are required
- Which yarn Searches for the bin path until bin
- Open the ~ /.zshrc file and add text
The export PATH = "$PATH: if get to bin PATH: $HOME/config/yarn/global/node_modules /. Bin"
- Run in ZSH
source ./zshrc
To make it effective
Intranet penetration software
Development may need to be provided remotely to *** for acceptance, which requires Intranet penetration
- ngrok
- Unzip the package
unzip /path/to/ngrok.zip
- Set the user in the current directory
./ngrok AuthToken Your token
- use
./ngrok HTTP Port number of your development environment
- When “Invalid Host header” is encountered
Ngrok HTTP --host-header=rewrite port number
use - Unzip the package
- natapp
MAC Focus SoftwareAlfred
usenvmTo manage the Node version
-
You can uninstall node by running node -v
-
#Executed in sequencesudo npm uninstall npm -g sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* sudo rm -rf /usr/local/include/node /Users/$USER/.npm sudo rm /usr/local/bin/node sudo rm /usr/local/share/man/man1/node.1 sudo rm /usr/local/lib/dtrace/node.d#validation node -v npm -v Copy the code
-
-
Install git
-
If you don’t have Git installed, you can install it via Homebrew first
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Copy the code
-
Brew install Git
-
-
Install the NVM
- Open thenvmGithub repository, check readMe, find
Installing and Updataing
- Open thenvmGithub repository, check readMe, find
-
Using curl, you can modify the global variables using the following code
-
Enter NVM on the terminal to check whether the installation is complete
-
In case of problems, you can continue to see the README solution for NVM
-
NVM common commands
NVM install Installs the latest version of NVM. NVM install <version> Installs the corresponding node version. NVM use <version> Switches to the specified node version NVM LS List all node versions. NVM Current Displays the current node version. NVM Uninstall <version> Uninstalls the specified node versionCopy the code
Use YRM to manage NPM sources
- Install using NPM
npm install -g yrm
yrm ls
View all sourcesyrm use taobao
Specify taobao source,taobao
isyrm ls
Shown in the