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

Cannot find package.json in root path #14

Closed
thackerc opened this issue Jan 25, 2020 · 1 comment
Closed

Cannot find package.json in root path #14

thackerc opened this issue Jan 25, 2020 · 1 comment

Comments

@thackerc
Copy link

I installed ts-appversion in my angular project and ran:
node ./node_modules/@saithodev/ts-appversion/index.js
and got the following error:

[NgAppVersion] Cannot find package.json in root path. Skipping...

Looking in ./node_modules/@saithodev/ts-appversion/index.js I changed line 8 from:
let rootPath = path.join('..', '..');
to:
let rootPath = path.join('..', '..', '..');

This seemed to fix the error.

@saitho
Copy link
Owner

saitho commented Jan 25, 2020

Thanks for the report. That happened when I changed the package name.
I applied the fix and a new version was released to NPM. ;)

@saitho saitho closed this as completed Jan 25, 2020
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

2 participants