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

no template named 'is_lvalue_reference_v' in namespace 'std' #67

Closed
malthe opened this issue Dec 15, 2023 · 1 comment
Closed

no template named 'is_lvalue_reference_v' in namespace 'std' #67

malthe opened this issue Dec 15, 2023 · 1 comment

Comments

@malthe
Copy link

malthe commented Dec 15, 2023

Trying to install on Mac/ARM64 but getting:

npm ERR! In file included from ../src/cpu_profiler/cpu_profiler.cc:1:
npm ERR! In file included from ../src/cpu_profiler/cpu_profiler.h:4:
npm ERR! In file included from ../src/isolate_aware.h:4:
npm ERR! In file included from ../../nan/nan.h:62:
npm ERR! In file included from /Users/mborch/Library/Caches/node-gyp/21.3.0/include/node/node.h:73:
npm ERR! In file included from /Users/mborch/Library/Caches/node-gyp/21.3.0/include/node/v8.h:24:
npm ERR! In file included from /Users/mborch/Library/Caches/node-gyp/21.3.0/include/node/v8-array-buffer.h:13:
npm ERR! In file included from /Users/mborch/Library/Caches/node-gyp/21.3.0/include/node/v8-object.h:9:
npm ERR! /Users/mborch/Library/Caches/node-gyp/21.3.0/include/node/v8-maybe.h:106:45: error: no template named 'is_lvalue_reference_v' in namespace 'std'; did you mean 'is_lvalue_reference'?
npm ERR!   template <class U, std::enable_if_t<!std::is_lvalue_reference_v<U>>*>
npm ERR!                                        ~~~~~^~~~~~~~~~~~~~~~~~~~~
npm ERR!                                             is_lvalue_reference
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_reference.h:26:29: note: 'is_lvalue_reference' declared here
@hyj1991
Copy link
Owner

hyj1991 commented Jan 1, 2024

This has been fixed in 'v1.10.0', just need to upgrade the nan version to resolve the issue.

@hyj1991 hyj1991 closed this as completed Jan 1, 2024
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

2 participants