A first install node.js:
1.打开nodejs的官网,进入下载界面:
https://nodejs.org/zh-cn/download/
2. Select macOS installation package, it will download a file called node-v8.11.4.pkg, and click to fool installation:
3. Installation process will enter the power-on password:
? 4. successful installation as shown:
5. an input node -v to the terminal to verify and validate the input npm -v:
6. If the terminal is displayed on the map, the installation proved nodejs
Second, install Taobao Mirror:
1.在终端输入命令:“sudo -s“ ,然后输入开机密码,获得超级系统权限
2. Enter the following command to the terminal to download image Taobao:
NPM the install -registry = -g CNPM https://registry.npm.taobao.org -verbose
3.安装成功:
Three installation ember.js:
1.然后在终端输入以下命令,即可安装ember.js:
cnpm install -g ember-cli
2. Installation shows successful:
2. In the terminal, the input ember -v emberjs can check the version number
3. successful installation.
4. enter in a terminal: "exit", exit super management authority
four common problems:
1. Install Taobao mirror fails, possibly because of the super did not enter the system management authority, in a terminal type
sudo -s, power-on password, you can enter
2. enter the installation ember ember -v displays an error, as if to say no installation is successful, then enter sudo -s and power-on password in the terminal, enter the super-administrative privileges, the input can be found ember ember -v version number.