question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CLI package installation fails with `npm` and Artifactory

See original GitHub issue

Running 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)

  1. 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:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
escapedcatcommented, Jan 20, 2019

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 😃

1reaction
chris-duracommented, Jan 18, 2019

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 🤷‍♀️

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found