美文网首页
阿里云服务器Ubuntu18.04安装相关环境

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

作者: 斐硕人 | 来源:发表于2019-03-14 00:00 被阅读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错误
  • 原因:webpackwebpack-cli版本不匹配
  • 解决:
npm i webpack-cli@3.1.1 -D

相关文章

网友评论

      本文标题:阿里云服务器Ubuntu18.04安装相关环境

      本文链接:https://www.haomeiwen.com/subject/hhpxmqtx.html