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

devkit-core preinstall.sh throws errors during devkit init #54

Open
amirc opened this issue Jul 19, 2016 · 1 comment
Open

devkit-core preinstall.sh throws errors during devkit init #54

amirc opened this issue Jul 19, 2016 · 1 comment

Comments

@amirc
Copy link

amirc commented Jul 19, 2016

Hi,
I'm running ubuntu 16, node v6.3.0 and npm 3.10.3.
I installed devkit throw npm.

devkit-core preinstall.sh throws errors during devkit init

I tried to run it with node v4 but I get the same error.

`➜ /tmp devkit init hello
(node:11982) DeprecationWarning: 'GLOBAL' is deprecated, use 'global'
[apps] Creating app using default template
Creating app using default application template
[install] Installing devkit-core...
Adding devkit-core
[module] set version [email protected]
[install] Copying /tmp/hello/modules
[cache] installing devkit-core at /tmp/hello/modules/devkit-core/
[module] running install scripts...

[email protected] preinstall /tmp/hello/modules/devkit-core
sh scripts/preinstall.sh

Synchronizing submodule url for 'modules/native-android'
Synchronizing submodule url for 'modules/native-ios'
Synchronizing submodule url for 'modules/squill'
Synchronizing submodule url for 'modules/timestep'

[email protected] preinstall /tmp/hello/modules/devkit-core/modules/native-android
sh ./preinstall.sh

Synchronizing submodule url for 'barista'
fatal: Not a git repository: /home/amir/.config/devkit/cache/26620230863654590862/.git/modules/modules/native-android/modules/barista
fatal: Not a git repository: /home/amir/.config/devkit/cache/26620230863654590862/.git/modules/modules/native-android/modules/barista
fatal: Not a git repository: /home/amir/.config/devkit/cache/26620230863654590862/.git/modules/modules/native-android/modules/barista
Synchronizing submodule url for 'native-core'
fatal: Not a git repository: /home/amir/.config/devkit/cache/26620230863654590862/.git/modules/modules/native-android/modules/native-core
fatal: Not a git repository: /home/amir/.config/devkit/cache/26620230863654590862/.git/modules/modules/native-android/modules/native-core
fatal: Not a git repository: /home/amir/.config/devkit/cache/26620230863654590862/.git/modules/modules/native-android/modules/native-core
fatal: Not a git repository: /home/amir/.config/devkit/cache/26620230863654590862/.git/modules/modules/native-android/modules/barista
Unable to find current revision in submodule path 'barista'

npm ERR! Linux 4.4.0-28-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v6.3.0
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] preinstall: sh ./preinstall.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script 'sh ./preinstall.sh'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the native-android package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! sh ./preinstall.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs native-android
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls native-android
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /tmp/hello/modules/devkit-core/modules/native-android/npm-debug.log
Stopping at 'modules/native-android'; script returned non-zero status.

npm WARN [email protected] No license field.
npm ERR! Linux 4.4.0-28-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v6.3.0
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] preinstall: sh scripts/preinstall.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script 'sh scripts/preinstall.sh'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the devkit-core package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! sh scripts/preinstall.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs devkit-core
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls devkit-core
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /tmp/hello/modules/devkit-core/npm-debug.log

      [devkit]  [error]  npm install for module devkit-core failed (exit code 1).

`

EDIT:
If after the init fails I run sudo sh scripts/preinstall.sh then the installation passes and everything seems to be working
Thanks,
Amir.

@lee101
Copy link

lee101 commented Apr 8, 2017

I found that after this error running sudo sh scripts/preinstall.sh gave the another error about android which i fixed by installing
sudo apt-get install android-tools-adb

The error i got with the preinstall script was

MYAPP/modules/devkit-core$ sh scripts/preinstall.sh
Synchronizing submodule url for 'modules/native-android'
Synchronizing submodule url for 'modules/native-ios'
Synchronizing submodule url for 'modules/squill'
Synchronizing submodule url for 'modules/timestep'

> [email protected] preinstall /home/lee/code/testinstall/gemswapper/modules/devkit-core/modules/native-android
> sh ./preinstall.sh

Synchronizing submodule url for 'barista'
fatal: Not a git repository: /home/lee/.config/devkit/cache/21956178761170836116/.git/modules/modules/native-android/modules/barista
fatal: Not a git repository: /home/lee/.config/devkit/cache/21956178761170836116/.git/modules/modules/native-android/modules/barista
fatal: Not a git repository: /home/lee/.config/devkit/cache/21956178761170836116/.git/modules/modules/native-android/modules/barista
Synchronizing submodule url for 'native-core'
fatal: Not a git repository: /home/lee/.config/devkit/cache/21956178761170836116/.git/modules/modules/native-android/modules/native-core
fatal: Not a git repository: /home/lee/.config/devkit/cache/21956178761170836116/.git/modules/modules/native-android/modules/native-core
fatal: Not a git repository: /home/lee/.config/devkit/cache/21956178761170836116/.git/modules/modules/native-android/modules/native-core
fatal: Not a git repository: /home/lee/.config/devkit/cache/21956178761170836116/.git/modules/modules/native-android/modules/barista
Unable to find current revision in submodule path 'barista'

npm ERR! Linux 4.4.0-47-generic
npm ERR! argv "/home/lee/programs/node-v7.8.0-linux-x64/bin/node" "/usr/bin/npm" "install"
npm ERR! node v7.8.0
npm ERR! npm  v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] preinstall: `sh ./preinstall.sh`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] preinstall script 'sh ./preinstall.sh'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the native-android package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     sh ./preinstall.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs native-android
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls native-android
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/lee/.npm/_logs/2017-04-08T02_40_23_469Z-debug.log
Stopping at 'modules/native-android'; script returned non-zero status.

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