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

Make Installation of Velocitas CLI work outside of DevContainer #160

Open
1 task done
eriksven opened this issue Aug 23, 2023 · 5 comments
Open
1 task done

Make Installation of Velocitas CLI work outside of DevContainer #160

eriksven opened this issue Aug 23, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@eriksven
Copy link

Severity

Critical

What release version, tag or commit-hash did you use?

v0.5.0

Current Behavior

I would like to install the velocitas-cli as described in the Readme and execute:

npm install -g velocitas-cli in the root-directory of the checked out repository.

The result is

cli % npm install -g velocitas-cli npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/velocitas-cli - Not found npm ERR! 404 npm ERR! 404 'velocitas-cli@*' is not in this registry. npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.

Steps to Reproduce

  1. git clone https://github.com/eclipse-velocitas/cli.git
  2. cd cli
  3. npm install -g velocitas-cli

Expected Behavior

Veloctias-CLI is globally installed on my machine

Possible Solution

No response

Additional Information

I tried this with the following versions and got the same result:

Node: v20.5.1, NPM: 9.8.0
Node: v18.17.1, NPM: 9.6.7

Code of Conduct

  • I agree to follow this project's "Code of Conduct".
@eriksven eriksven added the bug Something isn't working label Aug 23, 2023
@BjoernAtBosch BjoernAtBosch moved this from 🆕 New to 🔖 Approved in Velocitas Backlog Aug 31, 2023
@BjoernAtBosch BjoernAtBosch moved this from 🔖 Approved to 📋 Backlog in Velocitas Backlog Aug 31, 2023
@BjoernAtBosch BjoernAtBosch added enhancement New feature or request and removed bug Something isn't working labels Aug 31, 2023
@BjoernAtBosch
Copy link
Member

Hi Eriksven,
using the Velocitas CLI outside a devContainer isn't supported by us currently.
So, please use the CLI from within a running devContainer, e.g. of vehicle-app-python-template or vehicle-app-cpp-template or "instances" of it.
I will mark this as an possible enhancement.
Best regards
Bjoern

@eriksven
Copy link
Author

eriksven commented Sep 1, 2023

I see, my hope was to be able to bootstrap a new Velocitas project with the CLI from the local command line only, instead of copying the repository from the template. Marking it as enhancement sounds good.

@eriksven eriksven changed the title [Bug]: Installation of Velocitas CLI does not work Make Installation of Velocitas CLI work outside of DevContainer Sep 1, 2023
@doosuu
Copy link
Member

doosuu commented Feb 26, 2024

Hi @eriksven did you try to run npm i -g . within the cli directory? Explicitly passing a package name like velocitas-cli in your example above will force a lookup on npmjs.com's database. Unfortunately the CLI is not available via npmjs, yet.

@doosuu
Copy link
Member

doosuu commented Mar 14, 2024

Hi @eriksven where you able to test it? For me, on my mac outside of a devcontainer, I can successfully install the CLI using

npm i .
npm i -g .

@erikbosch
Copy link
Contributor

The commands below worked for me on a Debian VM. Without "sudo npm run build" the I could still run velocitas but there were no commands

sudo npm run build
sudo npm install -g
erik@debian6:~/vehicle-app-cpp-template$ velocitas
Lifecycle management of Velocitas Vehicle Applications

VERSION
  velocitas-cli/0.0.0 linux-x64 node-v18.19.0

USAGE
  $ velocitas [COMMAND]

TOPICS
  cache      Interact with the project cache
  component  Interact with project components

COMMANDS
  create   Create a new Velocitas Vehicle App project.
  exec     Executes a script contained in one of your installed components.
  init     Initializes Velocitas Vehicle App
  package  Prints information about packages
  sync     Syncs Velocitas components into your repo.
  upgrade  Updates Velocitas components.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

4 participants