hungcao181
hungcao181
@crvv @benhillis thanks a bunch! it works for me.
Page.on('console', (msg) => {}) actually fired, but the example will not work because msg.args is undefined. Inside the callback, just console.log(msg) we will see what is inside. Actually msg is...
Just one more thing, the page.on('console', callback) should be registered before any console.log statement can be called
These official guidelines resolved my problem: https://github.com/nodejs/node-gyp#installation https://github.com/Microsoft/nodejs-guidelines/blob/master/windows-environment.md#resolving-common-issues For the summary, Properly install of Python2.7, C++ build tools, then walk through Resolving common issues section on the Microsoft's nodejs guideline...
I have to remove existing nodejs folder "C:\Program Files\nodejs" and create symlink manually to make it work, in my case the command is: mklink /j "C:\Program Files\nodejs" "C:\Users\hungcao\AppData\Roaming\nvm\v6.7.0" update: From...