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

error on "$ npm run open" #49

Open
alamrezoanul opened this issue Oct 24, 2017 · 32 comments
Open

error on "$ npm run open" #49

alamrezoanul opened this issue Oct 24, 2017 · 32 comments

Comments

@alamrezoanul
Copy link

alamrezoanul commented Oct 24, 2017

[email protected] open /Users/xxxxx/projects/yyyyy
babel-node scripts/openConsole.js

sh: babel-node: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] open: babel-node scripts/openConsole.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] open 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/xxxxx/.npm/_logs/2017-10-23T23_54_04_451Z-debug.log

@christocracy
Copy link
Member

Did you follow all the setup steps?

@alamrezoanul
Copy link
Author

except this: $ react-native run-ios
I ran from xcode

@christocracy
Copy link
Member

Did you not run

$ npm install

??

@alamrezoanul
Copy link
Author

sure! the app runs successfully in my mobile. but can't see the locations in tracker. that's it

@alamrezoanul alamrezoanul changed the title error "$npm run open" error on "$npm run open" Oct 24, 2017
@alamrezoanul alamrezoanul changed the title error on "$npm run open" error on "$ npm run open" Oct 24, 2017
@christocracy
Copy link
Member

I think you have to run $ react-native run-ios the first time to generate the companyToken

@alamrezoanul
Copy link
Author

alamrezoanul commented Oct 24, 2017

well $ react-native run-ios constantly showing " Print: Entry, ":CFBundleIdentifier", Does Not Exist "
When bundleidentifier is actually exist,
Better, plz tell me how to generate a company token so that i can manually put it under lib folder

@christocracy
Copy link
Member

christocracy commented Oct 24, 2017

If that doesn't work, simply provide your own company_token (eg: your github username) here.

eg: company_token: 'alamrezoanul'

@alamrezoanul
Copy link
Author

Doesn't work though!

@christocracy
Copy link
Member

You won't see anything at http://tracker.transistorsoft.com/alamrezoanul until you boot the app, record some locations and have the plugin post those locations to the server.

@alamrezoanul
Copy link
Author

what you mean by boot ?

@christocracy
Copy link
Member

christocracy commented Oct 24, 2017

Boot as in run the app. Like this

@alamrezoanul
Copy link
Author

yayyyy ..... you know what i get the data with the company token "b34d3231"

@shaikhussian
Copy link

@alamrezoanul
I am also getting same error may i know how to resolve it

@alamrezoanul
Copy link
Author

alamrezoanul commented Nov 2, 2017 via email

@shaikhussian
Copy link

@alamrezoanul when i run this device also i am getting an error like this
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/RNBackgroundGeolocationSample.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

how to resolve this

@alamrezoanul
Copy link
Author

alamrezoanul commented Nov 2, 2017 via email

@alamrezoanul
Copy link
Author

alamrezoanul commented Nov 2, 2017 via email

@shaikhussian
Copy link

@alamrezoanul Yah i change the bundle identifier also, even i tried to run xcode as well but app is not build, while run in xcode it throws an error like this

screen shot 2017-11-02 at 11 00 02

@christocracy
Copy link
Member

Those are not errors, they’re warnings.

Change the build target in Xcode to >= 8.4 and they’re gone.

The plugin supports min iOS 8.4

@shaikhussian
Copy link

shaikhussian commented Nov 2, 2017

@christocracy i changed that one also even i am getting error.

@shaikhussian
Copy link

shaikhussian commented Nov 2, 2017

@christocracy @alamrezoanul i tried to resolve all the issues i got finally i stucked with one issue, i don't know how to resolve this
Change the build target in Xcode to >=8.4
my error in logs like this.

screen shot 2017-11-02 at 16 13 14
screen shot 2017-11-02 at 16 13 33

My xcode version:
8.3.3

@alamrezoanul
Copy link
Author

choose project from left side in xcode, choose general tab from right side. scroll down to bottom. take a screenshot and provide here. need to see linked framewroks and libraries.

@shaikhussian
Copy link

@alamrezoanul here are the linked frameworks
screen shot 2017-11-02 at 17 18 24

@alamrezoanul
Copy link
Author

nevermind, can you zip your project and give to me? I can take a look even though i'm bit busy. but i can try from here. And remember i use xcode 9, i see lot of things it has automated which was a pain before.

@christocracy
Copy link
Member

You need to use latest XCode 9.

@alamrezoanul
Copy link
Author

yes cuz you can deploy over wifi in xcode 9 and also you'll see renaming a soft group also renames the physical folder which was a pain in the neck before.

@christocracy
Copy link
Member

The latest version of the plugin was built with XCode 9 for iOS 11 support. You must always use latest version of XCode.

@alamrezoanul
Copy link
Author

so @shaikhussian i think that's it!

@christocracy
Copy link
Member

Solution to initial error:

npm ERR! [email protected] open: babel-node scripts/openConsole.js
$ npm install -g babel-cli
$ npm run open

@alamrezoanul
Copy link
Author

works (Y)
thanks

@shaikhussian
Copy link

@alamrezoanul i sent the zip file to you please check once

@alamrezoanul
Copy link
Author

okay

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

3 participants