1, install Nodejs, NPM
CURL-SL https://deb.nodesource.com/setup_8.x | SUDO-E Bash-
sudo apt-get install-y Nodejs
Verify Node-v, Npm-v
(Other installation methods are tried, only this is possible)
2, install Cordova, ionic
sudo npm install-g Cordova Ionic
3, Git clone or direct copy, the contents of the red box does not need to be copied
4. Generate Node_modules
CD to Mobile Directory
NPM Install
Generate Node_modules
If there is an error, perform more than twice
5. Operation
1, straight If you run ionic serve, after closing the window, the thread will be interrupted, you need to use the Nohup command, out of the terminal
2. Create a new start.sh file under the project directory and add the following content
Nohup Ionic serve >/home/jiashubing/project/mobile/tmp.log 2>&1 &
3. Why not use the Nohup command directly in the console?
Because Nohup is used directly, the instruction is not executed and is not executed because the execution of this instruction does not find the path
After normal startup, such as:
Original articles, welcome reprint, reproduced please indicate the source!
Install and run the Ionic project on Ubuntu