Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in npm install: build failing in Windows 10 #38

Open
lwxbr opened this issue Aug 12, 2020 · 2 comments
Open

Error in npm install: build failing in Windows 10 #38

lwxbr opened this issue Aug 12, 2020 · 2 comments

Comments

@lwxbr
Copy link

lwxbr commented Aug 12, 2020

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?

@bes-internal
Copy link

bes-internal commented Sep 20, 2021

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

@Mugentoki
Copy link

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

exact version I am using: v10.24.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants