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

npm global install command fails #18

Open
NikhilNanjappa opened this issue Jun 27, 2023 · 0 comments
Open

npm global install command fails #18

NikhilNanjappa opened this issue Jun 27, 2023 · 0 comments

Comments

@NikhilNanjappa
Copy link

When I run the first command on the README - npm install proofreader -g, it fails with the following error.

node version: 18.16.0, Apple M1 chip, Python3

nikhilnanjappa@Nikhils-MacBook-Pro ~ % npm install proofreader -g
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
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 ERR! code 1
npm ERR! path /Users/nikhilnanjappa/.npm-global/lib/node_modules/proofreader/node_modules/nodehun
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/affentry.o
npm ERR!   CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/affixmgr.o
npm ERR!   CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/csutil.o
npm ERR!   CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/filemgr.o
npm ERR!   CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/hashmgr.o
npm ERR!   CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/hunspell.o
npm ERR!   CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/hunzip.o
npm ERR!   CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/phonet.o
npm ERR!   CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/replist.o
npm ERR!   CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/strmgr.o
npm ERR!   CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/suggestmgr.o
npm ERR!   LIBTOOL-STATIC Release/hunspell.a
npm ERR!   CXX(target) Release/obj.target/nodehun/src/nodehun.o
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.3.1
npm ERR! gyp info using node@18.16.0 | darwin | arm64
npm ERR! gyp info find Python using Python version 3.11.4 found at "/opt/homebrew/opt/python@3.11/bin/python3.11"
npm ERR! gyp info spawn /opt/homebrew/opt/python@3.11/bin/python3.11
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/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/nikhilnanjappa/.npm-global/lib/node_modules/proofreader/node_modules/nodehun/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/nikhilnanjappa/Library/Caches/node-gyp/18.16.0/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/nikhilnanjappa/Library/Caches/node-gyp/18.16.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/Users/nikhilnanjappa/Library/Caches/node-gyp/18.16.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/Users/nikhilnanjappa/.npm-global/lib/node_modules/proofreader/node_modules/nodehun',
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! ../src/hunspell/src/hunspell/strmgr.cxx:79:19: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
npm ERR!   fprintf(stderr, err);
npm ERR!                   ^~~
npm ERR! ../src/hunspell/src/hunspell/strmgr.cxx:79:19: note: treat the string as an argument to avoid this
npm ERR!   fprintf(stderr, err);
npm ERR!                   ^
npm ERR!                   "%s",
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

1 participant