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 i failing #40

Closed
steveraysteveray opened this issue Jun 27, 2020 · 6 comments
Closed

npm i failing #40

steveraysteveray opened this issue Jun 27, 2020 · 6 comments

Comments

@steveraysteveray
Copy link

I'm running macOS Catalina 10.15.5, and tried downloading the zip file.
I unzipped it, and from the yarle-master folder tried running 'npm i'
It gave a number of errors (see attached file)

'node -v' shows: v12.18.0

Any suggestions?
yarle-install.txt

@akosbalasko
Copy link
Owner

Hi @steveraysteveray ,

Please downgrade your Node to 10.18.1.

Cheers,
akos

@steveraysteveray
Copy link
Author

Thanks. Things are better, but still errors:
yarle-install.txt

@akosbalasko
Copy link
Owner

akosbalasko commented Jun 30, 2020

Updating node-gyp may solve the problem:
npm install node-gyp@latest

@steveraysteveray
Copy link
Author

Looks like 'request" is deprecated, with alternatives at: request/request#3142

Here's what I got for 'npm install node-gyp@latest:

npm install node-gyp@latest
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

> node-expat@2.3.18 install /Volumes/Bulk/Downloads/yarle-master/node_modules/node-expat
> node-gyp rebuild

  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlparse.o
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmltok.o
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
  LIBTOOL-STATIC Release/libexpat.a
  CXX(target) Release/obj.target/node_expat/node-expat.o
  SOLINK_MODULE(target) Release/node_expat.node

> iconv@2.3.5 install /Volumes/Bulk/Downloads/yarle-master/node_modules/iconv
> node-gyp rebuild

  CXX(target) Release/obj.target/iconv/src/binding.o
  CC(target) Release/obj.target/iconv/deps/libiconv/lib/iconv.o
  CC(target) Release/obj.target/iconv/support/localcharset.o
  SOLINK_MODULE(target) Release/iconv.node

> @ronomon/utimes@2.3.0 install /Volumes/Bulk/Downloads/yarle-master/node_modules/@ronomon/utimes
> node-gyp rebuild

Traceback (most recent call last):
  File "/Users/steveray/.nvm/versions/node/v10.18.1/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 50, in <module>
    sys.exit(gyp.script_main())
  File "/Users/steveray/.nvm/versions/node/v10.18.1/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 554, in script_main
    return main(sys.argv[1:])
  File "/Users/steveray/.nvm/versions/node/v10.18.1/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 547, in main
    return gyp_main(args)
  File "/Users/steveray/.nvm/versions/node/v10.18.1/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 532, in gyp_main
    generator.GenerateOutput(flat_list, targets, data, params)
  File "/Users/steveray/.nvm/versions/node/v10.18.1/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 2215, in GenerateOutput
    part_of_all=qualified_target in needed_targets)
  File "/Users/steveray/.nvm/versions/node/v10.18.1/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 802, in Write
    self.WriteCopies(spec['copies'], extra_outputs, part_of_all)
  File "/Users/steveray/.nvm/versions/node/v10.18.1/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 1145, in WriteCopies
    env = self.GetSortedXcodeEnv()
  File "/Users/steveray/.nvm/versions/node/v10.18.1/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 1885, in GetSortedXcodeEnv
    additional_settings)
  File "/Users/steveray/.nvm/versions/node/v10.18.1/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 1616, in GetSortedXcodeEnv
    additional_settings)
  File "/Users/steveray/.nvm/versions/node/v10.18.1/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 1527, in _GetXcodeEnv
    if XcodeVersion() >= '0500' and not env.get('SDKROOT'):
TypeError: '>=' not supported between instances of 'tuple' and 'str'
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/steveray/.nvm/versions/node/v10.18.1/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 19.5.0
gyp ERR! command "/Users/steveray/.nvm/versions/node/v10.18.1/bin/node" "/Users/steveray/.nvm/versions/node/v10.18.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Volumes/Bulk/Downloads/yarle-master/node_modules/@ronomon/utimes
gyp ERR! node -v v10.18.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ronomon/utimes@2.3.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ronomon/utimes@2.3.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/steveray/.npm/_logs/2020-07-01T17_16_05_110Z-debug.log

@akosbalasko
Copy link
Owner

How about following these suggestions?:

nodejs/node-gyp#1917 (comment)

@steveraysteveray
Copy link
Author

They worked! Thanks.

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