kaiostech / sample-vanilla

Simple example of a to-do list for KaiOS devices
https://developer.kaiostech.com/getting-started/build-your-first-app/sample-code#vanilla
39 stars 13 forks source link

Can't install kdeploy #1

Open ghost opened 5 years ago

ghost commented 5 years ago

Very underrated OS. It runs stuff I can't run on an Android phone. I would like to build apps for it. However, not everything is working for me and I think it may be a bug.

I can npm install parcel-bundler without issue, but kdeploy will not install. I don't know where the kaiostech namespace is supposed to be, but there doesn't appear to be a kdeploy package in any case. I'm at a loss for how to proceed.

UPDATE: Filipe has made a new kdeploy repo here. Until the npm package is marked as mainline, it is installed like this:

npm install -g @filipe_x3/kdeploy

cloudspeech commented 5 years ago

Kdeploy is listed on NPM: https://www.npmjs.com/package/kdeploy

Minor edits to the package.json should make it work.

ghost commented 5 years ago

I modified package.json to reflect this. For what it's worth, here's my dev dependencies:

  "devDependencies": {
    "@babel/core": "7.2.0",
    "cssnano": "^4.1.10",
    "kdeploy": ">=0.8.5 <2.0.0",
    "parcel-bundler": "^1.6.1"
  },

Once I install parcel-bundler and kdeploy globally, it can build and launch in the browser without complaining. However, testing on a physical device is required, and I don't feel that I'm getting anywhere until that has been accomplished. You can enter debug mode by dialing *#*#debug#*#* and configure adb using the guide, but even though adb connects and the programs are installed, somehow nothing happens when I try to install using kdeploy.

No point submitting a PR if this basic thing won't happen.

Losses commented 4 years ago

@cloudspeech no longer exists.

stephanebisson commented 4 years ago

What happened to kdeploy? It's gone from github and npm.

ghost commented 4 years ago

Yep, gone. Maybe @johnatandias can give some feedback?

chenna-reddy commented 4 years ago

Any updates on this?? Its still missing from repo.

stephanebisson commented 4 years ago

It doesn't look like it's coming back. kdeploy was a wrapper on https://github.com/fabricedesre/b2gclitool, which you can install and use directly.

metaspartan commented 4 years ago

Seems KaiOS is fairly dead then without the use of kdeploy?

Filipe-Souza commented 4 years ago

For anyone still searching for a possible "solution" for this, I was able to install it by a apparently chinese mirror from NPM, called CNPM.

I don't know what is the purpose of kdeploy, but it's a listed dependency, so I searched and managed to install it.

Even on cnpm, they list this package as missing and eventually it will be deleted from cnpm. But this is what I made for installing it:

  1. First, install cnpm: npm install -g cnpm --registry=https://registry.npm.taobao.org

  2. After installing cnpm, delete any node_modules from the directory project and setup up a new project: cnpm init

  3. After configuring a new project, add the development dependencies (in my case, this items): cnpm install --save-dev kdeploy @babel/core parcel-bundler

All setup, now kdeploy is installed.

ghost commented 4 years ago

@Filipe-Souza I've written off KaiOS by this point, but since you've successfully installed kdeploy, would you be inclined to mirror it on GitHub before it disappears?

There seems to be a Kubernetes-related project of the same name. In fact, it's a rather common project name on GitHub. In any case, it's sad to see another development ecosystem bite the dust.

Filipe-Souza commented 4 years ago

@fluffrabbit Sure, I will search a way to do it properly on npm and post here soon.

Also, I'm not a expert on Kubernetes, but this project you linked looks promising, I will look into it for more details.

ghost commented 4 years ago

A source repo on GitHub would be great for anyone looking for this tool. Presumably it's all scripts.

I only mentioned that project because it shares the name kdeploy. It has nothing to do with this.

On May 26, 2020 6:19:38 PM MDT, Filipe Souza notifications@github.com wrote:

@fluffrabbit Sure, I will search a way to do it properly on npm and post here soon.

Also, I'm not a expert on Kubernetes, but this project you linked looks promising, I will look into it for more details.

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://u15781542.ct.sendgrid.net/ls/click?upn=AqJ-2F-2ByL3-2BqJfLt-2FcyMbbz3i0EMQ8-2FvoEE-2BcaL-2F1cIGFCOIf-2BLUksa4jwqouDc1Uo3Wzb-2B6yNvGHrxIzFrzPnAdqsuYwzr5nudVgJydTnnv7kz8YGSw1IfUDmRx6W71Cij2Yk_U31jt5HgHBh7k3Grc5s4lxb0dnodF0PqVOdMl9xn5T43ldBcWXGEDdgLfbNKwonT-2FeOaOyNffuBdmvIaaRLbVd-2F-2BNSpbm1EBSb7aslzkJwN80YPLbhULiURjtF38dxsVr9tHjTgyby5RDA8C7QBkkmA4Pj0zvAY1-2FEJ6VIkDEnnfta3U9RWqKMRG2CXEnpGWgI8OKRr0lh5tXdok9QAT-2FFW6dbrhmbmG3I8TaCFrwqfbfgdaRtQ9-2BZUqCqsklDpraYdXd379VBJkBNb3ZAXxAwjLz4qmaPgA-2FTt4Wos7eAE-3D

Filipe-Souza commented 4 years ago

After some trouble with npm repository, here it is: https://www.npmjs.com/package/@filipe_x3/kdeploy

ghost commented 4 years ago

@Filipe-Souza You went above and beyond. Until the npm people get wind of this, the way to install it is:

sudo npm install -g @filipe_x3/kdeploy

I am getting some warnings, so there is maintenance to do in the future, but it does install.

npm WARN deprecated firefox-client@0.3.0: Package no longer supported. Contact support@npmjs.com for more info.
npm WARN deprecated js-select@0.6.0: Package no longer supported. Contact support@npmjs.com for more info.
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

I'll keep this issue open for another couple weeks so people can find it.

marceloalencar commented 1 year ago

Apply changes found at https://github.com/kaiostech/sample-react/commit/f143280d5cb8b7c456fb35628fd9cf4a043bcc3b and you should be able to run npm install.

I hate npm already.