examples icon indicating copy to clipboard operation
examples copied to clipboard

Error in npm install: build failing in Windows 10

Open lwxbr opened this issue 5 years ago • 2 comments
trafficstars

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?

lwxbr avatar Aug 12 '20 20:08 lwxbr

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

bes-internal avatar Sep 20 '21 18:09 bes-internal

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

exact version I am using: v10.24.1

Mugentoki avatar Nov 16 '22 08:11 Mugentoki