CLI package installation fails with `npm` and Artifactory
See original GitHub issueRunning npm install @commitlint/cli
fails.
Expected Behavior
That it doesn’t fail.
Current Behavior
npm install @commitlint/cli
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @commitlint/rules@^7.3.1
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of '@commitlint/lint'
npm ERR! notarget
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/CDura/.npm/_logs/2019-01-17T23_34_20_182Z-debug.log
Affected packages
- cli
- core
- prompt
- config-angular
Possible Solution
Looks like some one of the cli package’s dependencies is attempting to install @commitlint/rules@^7.3.1
which doesn’t exist.
Steps to Reproduce (for bugs)
- Run
npm install @commitlint/cli
Context
My CI builds are failing as well, because I use a caret "@commitlint/cli": "^7.2.1"
.
Your Environment
Executable | Version |
---|---|
commitlint --version |
^7.2.1 |
git --version |
git version 2.19.2 |
node --version |
v10.15.0 |
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
How to troubleshoot NPM problems - JFrog
The libcurl terminal application can run basic REST API commands such as GET or PUT options. Your Artifactory request logs will display the ......
Read more >NPM Install not working with artifactory around proxy
The error message indicated that npm tried looking for a package named 'artifactory' instead of 'bower' : 'artifactory' is not in the npm...
Read more >jfrog-cli-v2 - npm
JFrog CLI. Website • Docs • Issues • Blog • We're Hiring • Artifactory Free Trial. Overview. JFrog CLI is a compact and...
Read more >npm packages in the Package Registry - GitLab Docs
The GitLab npm repository supports the following commands for the npm CLI ( npm ) and yarn CLI ( yarn ):. npm install...
Read more >Using Node.js npm with Artifactory via CLI & API - Sumo Logic
With npm installed on your system and an npm repo configured in Artifactory, you can use the npm CLI tool to execute npm...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We had this issue before and eventually it started to work again. Not neccessarily because of this article by jfrog but maybe because we cleared caches and restarted and updated Artifcatory.
commitlint isn’t the only package which provoked this issue though. Unfortunately we still do not have a good working solution on how to avoid this in the future.
We contacted jfrog but so far there isn’t much we can do. It’s very annoying but I do think this is not related to somethign commitlint does.
But happy to get more input from others if the stumble across this issue here 😃
All other NPM packages (normal and scoped) work fine.
I’ll do more testing tomorrow and try and figure out if it’s something wrong with the published version of this package in particular. Perhaps something went wrong or got corrupted in the public publish process that is causing our private Artifactory instance to 🤢… at which point it might be appropriate to re-open this 🤷♀️