Ubuntu16 install ember

1. Download and install NVM, you can refer to https://github.com/creationix/nvm
1) curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
2) Configure environment variables 
2.1) Enter sudo gedit ~/.bashrc in the terminal to open the bashrc file and add the following configuration
# This loads nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
2.2) source ~/.bashrc
       3) View installation information Enter nvm list in the terminal
2. Download and install NPM
installation: sudo curl -L https://www.npmjs.com/install.sh | sh
       Check the installation version and enter npm -v in the terminal

3. Install ember and bower
1) npm install -g ember-cli bower
2) Check the installation version and enter ember -v in the terminal
3) bower install
4) Check the bower installation version and enter in the terminal bower -v

3. If you already have an ember project, you need to download the project-related dependencies and
      enter the directory where the project is located. If your project is xxx-xxx, under the directory /home/user/workspace/xxx-xxx
1) Enter this directory cd / home/user/workspace/xxx-xxx
2) Install the dependencies of the project
    npm install
                bower install

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326222574&siteId=291194637