Closed ellenchristine closed 5 years ago
This looks like an issue with the npm registry, not the package. I was able to install it without issue:
$ npm i credit-card-type
/private/tmp
└── credit-card-type@8.1.0
npm WARN enoent ENOENT: no such file or directory, open '/private/tmp/package.json'
npm WARN tmp No description
npm WARN tmp No repository field.
npm WARN tmp No README data
npm WARN tmp No license field.
$ npm i credit-card-type@7.0.0
/private/tmp
└── credit-card-type@7.0.0
npm WARN enoent ENOENT: no such file or directory, open '/private/tmp/package.json'
npm WARN tmp No description
npm WARN tmp No repository field.
npm WARN tmp No README data
npm WARN tmp No license field.
$ npm i credit-card-type@6.0.0
/private/tmp
└── credit-card-type@6.0.0
npm WARN enoent ENOENT: no such file or directory, open '/private/tmp/package.json'
npm WARN tmp No description
npm WARN tmp No repository field.
npm WARN tmp No README data
npm WARN tmp No license field.
$ node -v
v6.16.0
$ nvm use 8
Now using node v8.15.0 (npm v6.4.1)
$ npm i credit-card-type@6.0.0
npm WARN saveError ENOENT: no such file or directory, open '/private/tmp/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/private/tmp/package.json'
npm WARN tmp No description
npm WARN tmp No repository field.
npm WARN tmp No README data
npm WARN tmp No license field.
+ credit-card-type@6.0.0
updated 1 package and audited 1 package in 2.588s
found 0 vulnerabilities
Every time I try to install this package I get the following:
503 Service Unavailable: credit-card-type@7.0.0
This occurs no matter what version I target. I first noticed the issue when trying to install the card-validator package, with this as a dependency. I tried installing credit-card-type directly with the same error.
I'm able to install other Node packages with no issues.
Here are the verbose logs: