ubuntu14.04 安装puppeteer 网页截图

构建node环境

sudo apt-get install nodejs-legacy

sudo apt-get install npm

npm config set registry https://registry.npm.taobao.org

sudo npm install -g cnpm

安装cnpm时,log如下

npm http GET https://registry.npm.taobao.org/cnpm
npm http 304 https://registry.npm.taobao.org/cnpm
npm WARN engine [email protected]: wanted: {"node":">= 6.0.0"} (current: {"node":"v0.10.25","npm":"1.3.10"})

未完待续。。。
 

猜你喜欢

转载自blog.csdn.net/eaglejiawo1120/article/details/83795916