keptn-archived / pitometer-ui

Pitometer is part of keptn. This Pitometer keptn UI repository is the first version of on out-of-the-box solution to enforce automated quality gates in your CI/CD Pipeline. It will work either with keptn as your deployment orchestrator or any other CI/CD tool such as Jenkins, Bamboo, Azure DevOps, Tekton, Argo CD, AWS CodePipeline or others.
Apache License 2.0
1 stars 3 forks source link

Could not find package.json while executing npm install #8

Open loveshjain opened 4 years ago

loveshjain commented 4 years ago

Hi there,

I was trying to install Pitometer UI on my machine by following the ReadMe (https://github.com/keptn-contrib/pitometer-ui#quick-start).

However, when I tried executing the following command “npm install”, I am getting below error.

npm ERR! code ENOLOCAL npm ERR! Could not install from "../pitometer" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in: npm ERR! /home/JainL/.npm/_logs/2019-09-18T02_52_49_416Z-debug.log

When I cloned the repo, it created a folder "~/git/pitometer-ui/" and this one does have package.json file but when I tried executing npm install , it is looking for

~/git/pitometer/package.json instead of ~/git/pitometer-ui/package.json

error from log file :-

843 verbose stack Error: ENOENT: no such file or directory, open '~/git/pitometer/package.json'

Could you please let me know how I can resolve this. Thanks

grabnerandi commented 4 years ago

HI

Thanks for catching this. We recently moved the pitometer-ui into the keptn-contrib GitHub Organization. It has a dependency on the pitometer core library which is in the keptn GitHub Org I will update the readme so that when you build it it doesnt install the devDependencies but just uses the production npm modules: What you need to do is simply use the following npm command: npm install --only=prod

If you do want to do a dev build you need to clone all the other pitometer related repositories in the keptn-contrib or as well as the following one from the keptn core project: https://github.com/keptn/pitometer.

Andi