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

[email protected] preinstall: sh scripts/preinstall.sh #248

Open
misterunix opened this issue Oct 6, 2015 · 6 comments
Open

[email protected] preinstall: sh scripts/preinstall.sh #248

misterunix opened this issue Oct 6, 2015 · 6 comments

Comments

@misterunix
Copy link

[bjones@develop devkit]$ devkit init hw
[apps] Creating app using default template
Creating app using default application template
[install] Installing devkit-core...
Adding devkit-core
Cloning into '/home/bjones/.config/devkit/cache/3379831676507212284'...
remote: Counting objects: 2225, done.
remote: Total 2225 (delta 0), reused 0 (delta 0), pack-reused 2225
Receiving objects: 100% (2225/2225), 529.08 KiB | 596.00 KiB/s, done.
Resolving deltas: 100% (1278/1278), done.
Checking connectivity... done.
[module] running install scripts...

[email protected] preinstall /home/bjones/.config/devkit/cache/3379831676507212284
sh scripts/preinstall.sh

Submodule 'modules/native-android' (https://github.com/gameclosure/native-android) registered for path 'modules/native-android'
Submodule 'modules/native-ios' (https://github.com/gameclosure/native-ios) registered for path 'modules/native-ios'
Submodule 'modules/squill' (https://github.com/gameclosure/squill) registered for path 'modules/squill'
Submodule 'modules/timestep' (https://github.com/gameclosure/timestep) registered for path 'modules/timestep'
Submodule 'node_modules/jsio' (https://github.com/gameclosure/js.io) registered for path 'node_modules/jsio'
Cloning into 'modules/native-android'...
remote: Counting objects: 4295, done.
remote: Total 4295 (delta 0), reused 0 (delta 0), pack-reused 4295
Receiving objects: 100% (4295/4295), 10.10 MiB | 746.00 KiB/s, done.
Resolving deltas: 100% (2500/2500), done.
Checking connectivity... done.
Submodule path 'modules/native-android': checked out 'df3ef01b9b82cada123ed97c0a879f14a5ba041d'
Cloning into 'modules/native-ios'...
remote: Counting objects: 4716, done.
remote: Total 4716 (delta 0), reused 0 (delta 0), pack-reused 4716
Receiving objects: 100% (4716/4716), 46.43 MiB | 539.00 KiB/s, done.
Resolving deltas: 100% (2873/2873), done.
Checking connectivity... done.
Submodule path 'modules/native-ios': checked out '221ee59562f6830b8098523920c3623893155254'
Cloning into 'modules/squill'...
remote: Counting objects: 1645, done.
remote: Total 1645 (delta 0), reused 0 (delta 0), pack-reused 1645
Receiving objects: 100% (1645/1645), 428.42 KiB | 588.00 KiB/s, done.
Resolving deltas: 100% (1024/1024), done.
Checking connectivity... done.
Submodule path 'modules/squill': checked out 'a5e4c5be4cd93074c0d6dbb60c0f509f96b8ec62'
Cloning into 'modules/timestep'...
remote: Counting objects: 6912, done.
remote: Compressing objects: 100% (332/332), done.
remote: Total 6912 (delta 211), reused 0 (delta 0), pack-reused 6580
Receiving objects: 100% (6912/6912), 1.99 MiB | 666.00 KiB/s, done.
Resolving deltas: 100% (4449/4449), done.
Checking connectivity... done.
Submodule path 'modules/timestep': checked out 'aa7e53313aa1f01a28ddda56386939496c000b25'
fatal: destination path 'node_modules/jsio' already exists and is not an empty directory.
fatal: clone of 'https://github.com/gameclosure/js.io' into submodule path 'node_modules/jsio' failed

npm WARN ENOENT ENOENT, open '/home/bjones/.config/devkit/cache/3379831676507212284/node_modules/jsio/package.json'
npm WARN EPACKAGEJSON [email protected] No license field.
npm ERR! Linux 2.6.32-504.16.2.el6.i686
npm ERR! argv "node" "/usr/bin/npm" "install"
npm ERR! node v0.10.36
npm ERR! npm v3.3.5
npm ERR! code ELIFECYCLE
npm ERR! [email protected] preinstall: sh scripts/preinstall.sh
npm ERR! Exit status 128
npm ERR!
npm ERR! Failed at the [email protected] preinstall script 'sh scripts/preinstall.sh'.
npm ERR! 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 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! /home/bjones/.config/devkit/cache/3379831676507212284/npm-debug.log

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

[bjones@develop devkit]$

The above file in cache does not exist.

@jishnu7
Copy link

jishnu7 commented Oct 7, 2015

Reason behind this is, jsio is specified as a git sub module and as npm package. When you run devkit install since build script tries to do both in the same folder, it is failing.

I opened the same bug here -> play-co/devkit-core#38

Temporary fix is to clone devkit-core manually and remove jsio from package.json and run npm install inside that folder.

@misterunix
Copy link
Author

Posted in your ticket.

@yofreke
Copy link
Contributor

yofreke commented Nov 29, 2015

This looks fixed with https://github.com/gameclosure/devkit-core/releases/tag/v4.0.7, please close if this is the case

@dotfury
Copy link

dotfury commented Jul 2, 2016

Breaks for me: Failed at the [email protected] preinstall script 'sh scripts/preinstall.sh'.

@yofreke
Copy link
Contributor

yofreke commented Jul 2, 2016

@dotfury What is the error that you are seeing?

@dotfury
Copy link

dotfury commented Jul 4, 2016

My mistake, forgot to run as admin. Sorry for the confusion.

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

4 participants