阿里云服务器Ubuntu18.04安装相关环境

2019-03-14  本文已影响0人  斐硕人

安装环境

sudo apt-get update

sudo apt-get install zsh
chsh -s /bin/zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"      //安装oh-my-zsh

sudo apt-get install nodejs
sudo apt install npm

npm i cnpm -g --registry=http://registry.npm.taobao.org

sudo apt-get install git
git config --global user.name XX
git config --global user.email XX

sudo apt-get install mongodb
service mongodb start

项目启动

use CSHTS
cd /home
git clone https://github.com/xx/xx.git
cd CSHTS
npm install
npm run webpack
npm start

npm install 踩坑

1.NPM Install with package.json exits during extract --> gunzTarPerm with no error message

  1. webpack提示Cannot read property ‘properties’ of undefined错误
npm i webpack-cli@3.1.1 -D
上一篇 下一篇

猜你喜欢

热点阅读