puppeteer / examples

Use case-driven examples for using Puppeteer and headless chrome

Home Page:https://developers.google.com/web/tools/puppeteer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in npm install: build failing in Windows 10

lwxbr opened this issue · comments

commented

Hello, I installed Python 3.8.2. Visual Studio Community 2019 to run node-gyp and tried to install the modules executing "yarn".
But in the final step of installation, in build, it gives a compilation error. How I solve this?

Same for
linux 5.8
Python 3.9.6
node v16.6.2
npm v7.20.3

2474 error /root/.cache/node-gyp/16.6.2/include/node/v8-internal.h: In function ‘void v8::internal::PerformCastCheck(T*)’:
2474 error /root/.cache/node-gyp/16.6.2/include/node/v8-internal.h:488:38: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’?
2474 error   488 |             !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
2474 error       |                                      ^~~~~~~~~~~
2474 error       |                                      remove_cv
2474 error /root/.cache/node-gyp/16.6.2/include/node/v8-internal.h:488:38: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’?
2474 error   488 |             !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
2474 error       |                                      ^~~~~~~~~~~
2474 error       |                                      remove_cv
2474 error /root/.cache/node-gyp/16.6.2/include/node/v8-internal.h:488:50: error: template argument 2 is invalid
2474 error   488 |             !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
2474 error       |                                                  ^
2474 error /root/.cache/node-gyp/16.6.2/include/node/v8-internal.h:488:63: error: ‘::Perform’ has not been declared
2474 error   488 |             !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
2474 error       |                                                               ^~~~~~~
...
make: *** [sharp.target.mk:136: Release/obj.target/sharp/src/common.o] Error 1

Same problem without python.
Using v10 of node fixed it for me

exact version I am using: v10.24.1