1. 程式人生 > >ubuntu14.04 安裝puppeteer 網頁截圖

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"})

未完待續。。。