play-co / devkit-core

11 stars 17 forks source link

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

Open amirc opened 8 years ago

amirc commented 8 years ago

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 devkit-core@v4.5.2 [install] Copying /tmp/hello/modules [cache] installing devkit-core at /tmp/hello/modules/devkit-core/ [module] running install scripts...

devkit-core@4.5.2 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'

native-android@1.0.22 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! native-android@1.0.22 preinstall: sh ./preinstall.sh npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the native-android@1.0.22 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 devkit-core@4.5.2 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! devkit-core@4.5.2 preinstall: sh scripts/preinstall.sh npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the devkit-core@4.5.2 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 commented 7 years ago

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'

> native-android@1.0.22 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! native-android@1.0.22 preinstall: `sh ./preinstall.sh`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the native-android@1.0.22 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.