i配置安装node环境
cd /home/soft
wget
tar xf node-v4.8.0-linux-x64.tar.gz
加入环境变量
export PATH=/usr/local/nginx/sbin:/usr/local/php/bin:/usr/local/mysql/bin:/home/soft/node-v4.8.0-linux-x64/bin:/home/soft/node-v4.8.0-linux-x64/lib/node_modules/yarn/bin:/home/soft/node_modules/gulp/bin:$PATH
上述的node和npm安装完毕
你就可以体验npm安装php插件的好处了:
npm install -y yarn
yarn add gulp
安装nodejs
参考:
阅读(819) | 评论(0) | 转发(0) |