Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Installation with yarn fails #1409

Open
kdiehl opened this issue Sep 17, 2019 · 7 comments
Open

Installation with yarn fails #1409

kdiehl opened this issue Sep 17, 2019 · 7 comments

Comments

@kdiehl
Copy link

kdiehl commented Sep 17, 2019

The install scripts are not triggered when installed using yarn.

Additionally, the build seems not to run properly using yarn. There are missing dependencies for example.

After switching to npm everything works fine.

Is this known?

@EddyVerbruggen
Copy link
Owner

I guess.. I've never used yarn. Do you have ideas on how to add support?

@kdiehl
Copy link
Author

kdiehl commented Sep 17, 2019

Not really. But I would assume that you are using deprecated features or something that are not supported in yarn to run scripts.

Typically, yarn works identical to npm.

Sadly, I don't really know how and what you are calling under the hood.

Maybe you can investigate a bit and in the meantime add a mention to the readme.

@EddyVerbruggen
Copy link
Owner

I'll leave this open for others to chime in then. Thx.

@kdiehl
Copy link
Author

kdiehl commented Sep 17, 2019

I found that the problem seems to only affect installation.

@n0mer
Copy link

n0mer commented Sep 26, 2019

@n0mer
Copy link

n0mer commented Sep 26, 2019

@n0mer
Copy link

n0mer commented Sep 26, 2019

@kdiehl here is a relevant snippet, to support your point:

> [email protected] postinstall C:\projects\<project>\node_modules\nativescript-plugin-firebase
> node postinstall-hooks.js && node scripts/postinstall.js

Hook already installed: nativescript-plugin-firebase at location: C:\projects\<project>\hooks\before-prepare
Hook already installed: nativescript-plugin-firebase at location: C:\projects\<project>\hooks\after-prepare
NativeScript Firebase Plugin Installation
Config file exists (firebase.nativescript.json)
Successfully created iOS (Pod) file.
Install google-service.json after-prepare copy hook.
Install google-service.json before-checkForChanges copy hook.
Install Crashlytics buildscript hook.
Install Firestore buildscript hook.
Successfully created Android (include.gradle) file.
Install google-service.json after-prepare copy hook.
Install google-service.json before-checkForChanges copy hook.
Firebase post install completed. To re-run this script, navigate to the root directory of `nativescript-plugin-firebase` in your `node_modules` folder and run: `npm run config`.

> [email protected] postinstall C:\projects\<project>\node_modules\node-sass
> node scripts/build.js

Binary found at C:\projects\<project>\node_modules\node-sass\vendor\win32-x64-72\binding.node
Testing binary
Binary is fine
npm notice created a lockfile as package-lock.json. You should commit this file.

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

No branches or pull requests

3 participants