安装环境
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
- 原因:买的云服务器内存太小(:з」∠)
- 解决:看了已安装的依赖后,其余的逐个
install
- 来源:
http://www.itkeyword.com/doc/0903824181671884x119/npm-install-failing-using-babel-presets-chai-mocha
https://stackoverflow.com/questions/34056467/npm-install-with-package-json-exits-during-extract-gunztarperm-with-no-error
- webpack提示Cannot read property ‘properties’ of undefined错误
- 原因:
webpack
与webpack-cli
版本不匹配 - 解决:
npm i webpack-cli@3.1.1 -D
网友评论