Skip to content

Cannot read property 'match' of null error when installing tns cli #2810

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

Closed
teobugslayer opened this issue May 12, 2017 · 6 comments
Closed
Assignees
Milestone

Comments

@teobugslayer
Copy link
Contributor

Tell us about the problem

I am installing tns on clean Mac Sierra, without any dependencies installed.
in this case, the following issue appears:

Warning: CocoaPods is not installed or is not configured properly
....
Cannot read property 'match' of null
Do you want to help us improve NativeScript by automatically ....

Which platform(s) does your issue occur on?

macOS

Please provide the following version numbers that your issue occurs with:

  • CLI: 2.5.0

Please tell us how to recreate the issue in as much detail as possible.

On a freshly install macOS Sierra, install homebrew, node and then attempt to install NativeScript CLI

@vchimev
Copy link

vchimev commented May 12, 2017

Perhaps JAVA_HOME environment variable is missing, looks similar to #1922.

@dtopuzov
Copy link
Contributor

It looks more like #1245 (comment)

@dtopuzov
Copy link
Contributor

Actually those are two separate issues:

  1. Setup script do not install cocoa pods properly
  2. Tns doctor do not show appropriate error message

@dtopuzov dtopuzov changed the title error when installing tns cli Cannot read property 'match' of null error when installing tns cli May 14, 2017
@pkoleva pkoleva added this to the 3.2.0 milestone Jul 13, 2017
@Plamen5kov
Copy link
Contributor

Plamen5kov commented Jul 24, 2017

Can't reproduce the problem.
Edit: let's leave it open until we find a way to reproduce it.

@Plamen5kov
Copy link
Contributor

@teobugslayer can you provide the output from the command:
tns doctor --log trace so we can have a more detailed look at the computer configuration, because there's a possibility xCode is not installed or xcodebuild tool is not in the PATH.

@Plamen5kov
Copy link
Contributor

@teobugslayer if your xcode is not installed at all or not configured properly, you should see something like:

mcsofplpetkov:nativescript-cli plpetkov$ tns doctor
WARNING: Xcode is not installed or is not configured properly.
You will not be able to build your projects for iOS or run them in the iOS Simulator.
To be able to build for iOS and run apps in the native emulator, verify that you have installed Xcode.

WARNING: CocoaPods is not installed or is not configured properly.
You will not be able to build your projects for iOS if they contain plugin with CocoaPod file.
To be able to build such projects, verify that you have installed CocoaPods.
Cannot read property 'match' of null
# doctor

If that's the case, we'll work on a better error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants