library not installing on macos with node 17
See original GitHub issueMacOS Intel 12.1
➜ backend git:(main) ✗ node -v
v17.0.1
➜ backend git:(main) ✗ npm -v
8.1.0
➜ backend git:(main) ✗ npm i -s instagram-private-api
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated url-regex-safe@1.1.0: Please upgrade to url-regex-safe@v3.0.0+ AND install re2 as an additional dependency in your project via `npm install re2` or `yarn add re2`.
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated ts-custom-error@2.2.2: npm package tarball contains useless codeclimate-reporter binary, please update to version 3.1.1. See https://github.com/adriengibrat/ts-custom-error/issues/32
npm ERR! code 1
npm ERR! path /Users/sergey/Documents/project-a/backend/node_modules/re2
npm ERR! command failed
npm ERR! command sh -c install-from-cache --artifact build/Release/re2.node --host-var RE2_DOWNLOAD_MIRROR
npm ERR! Trying https://github.com/uhop/node-re2/releases/download/1.15.4/darwin-x64-102.br ...
npm ERR! Trying https://github.com/uhop/node-re2/releases/download/1.15.4/darwin-x64-102.gz ...
npm ERR! Building locally ...
npm ERR!
npm ERR! > re2@1.15.4 rebuild
npm ERR! > node-gyp rebuild
npm ERR!
npm ERR! CXX(target) Release/obj.target/re2/lib/addon.o
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@7.1.2
npm ERR! gyp info using node@17.0.1 | darwin | x64
npm ERR! gyp info find Python using Python version 3.8.12 found at "/usr/local/opt/python@3.8/bin/python3.8"
npm ERR! (node:16375) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
npm ERR! gyp info spawn /usr/local/opt/python@3.8/bin/python3.8
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/Users/sergey/Documents/project-a/backend/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/sergey/Documents/project-a/backend/node_modules/re2/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/sergey/Documents/project-a/backend/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/sergey/Library/Caches/node-gyp/17.0.1/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/sergey/Library/Caches/node-gyp/17.0.1',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Users/sergey/Documents/project-a/backend/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/sergey/Library/Caches/node-gyp/17.0.1/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/sergey/Documents/project-a/backend/node_modules/re2',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from ../lib/addon.cc:1:
npm ERR! In file included from ../lib/./wrapped_re2.h:4:
npm ERR! In file included from ../../nan/nan.h:58:
npm ERR! In file included from /Users/sergey/Library/Caches/node-gyp/17.0.1/include/node/node.h:63:
npm ERR! In file included from /Users/sergey/Library/Caches/node-gyp/17.0.1/include/node/v8.h:25:
npm ERR! In file included from /Users/sergey/Library/Caches/node-gyp/17.0.1/include/node/v8-array-buffer.h:12:
npm ERR! In file included from /Users/sergey/Library/Caches/node-gyp/17.0.1/include/node/v8-local-handle.h:12:
npm ERR! /Users/sergey/Library/Caches/node-gyp/17.0.1/include/node/v8-internal.h:566:38: error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'?
npm ERR! !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
npm ERR! ~~~~~^~~~~~~~~~~
npm ERR! remove_cv
npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:710:50: note: 'remove_cv' declared here
npm ERR! template <class _Tp> struct _LIBCPP_TEMPLATE_VIS remove_cv
npm ERR! ^
npm ERR! 1 error generated.
npm ERR! make: *** [Release/obj.target/re2/lib/addon.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/Users/sergey/Documents/project-a/backend/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:390:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Darwin 21.2.0
npm ERR! gyp ERR! command "/usr/local/Cellar/node/17.0.1/bin/node" "/Users/sergey/Documents/project-a/backend/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /Users/sergey/Documents/project-a/backend/node_modules/re2
npm ERR! gyp ERR! node -v v17.0.1
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok
npm ERR! node:internal/process/promises:246
npm ERR! triggerUncaughtException(err, true /* fromPromise */);
npm ERR! ^
npm ERR!
npm ERR! [UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "1".] {
npm ERR! code: 'ERR_UNHANDLED_REJECTION'
npm ERR! }
npm ERR!
npm ERR! Node.js v17.0.1
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
nvm install node fails to install on macOS Big Sur M1 Chip
I'm trying to install the latest version of node using nvm. I've just got the newly released SIlicon Macbook Pro with the M1...
Read more >Node.js msnodesqlv8 module not installing in macOS ARM64
I solved creating a second environment of brew under /usr/local using my terminal under Rosetta for x86_64 architecture. I reinstalled the mssql ...
Read more >Clang linking error MacOS Big Sur | Apple Developer Forums
I solved this problem by installing the CommandLineTool from Xcode. Before solving this problem, I found that there is no CommandLineTools folder in...
Read more >pkg - npm
This command line interface enables you to package your Node.js project into an executable that can be run even on devices without Node.js ......
Read more >How To Install and Use the Yarn Package Manager for Node.js
Yarn is a package manager for Node.js that focuses on speed, security, and consistency. In this tutorial you will install Yarn globally, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can add the new
node-re2
to your dependencies for now and it should be used automatically over the old version.Any updates here?