newrelic / video-agent-roku

New Relic Agent for Roku
Apache License 2.0
18 stars 18 forks source link

NPM install fails due to lack of package.json #45

Closed luis-soares-sky closed 2 years ago

luis-soares-sky commented 2 years ago

In our project we are attempting to install the NewRelic agent via npm (v8.13.2), but the installation fails due to a missing package.json.

Our package.json (snip):

{
    "dependencies": {
        "newrelic": "newrelic/video-agent-roku.git#2.1.1"
    }
}

The error when we run npm i:

npm WARN tarball tarball data for newrelic@git+https://github.com/newrelic/video-agent-roku.git (null) seems to be corrupted. Trying again.
npm WARN tarball tarball data for newrelic@git+https://github.com/newrelic/video-agent-roku.git (null) seems to be corrupted. Trying again.
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /Users/luis.soares/.npm/_cacache/tmp/git-clonegqVpeD/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/Users/luis.soares/.npm/_cacache/tmp/git-clonegqVpeD/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

Would it be possible to add a "package.json" to the root?

asllop commented 2 years ago

Fixed in https://github.com/newrelic/video-agent-roku/pull/47