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.

Bug: npq doesn't support the npm alias convention

See original GitHub issue

Expectated

This should work fine by parsing properly the jquery@2 as a package name

npq install jquery2@npm:jquery@2

Actual

This throws an error on the console, related to fetching an incorrect package information from the npmjs registry api.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
saleshcommented, Oct 30, 2020

Thank you @lirantal for patience and support, I hope I will contribute more in the future. 😃

1reaction
saleshcommented, Oct 29, 2020

Really sorry for this additional pull request @lirantal and for wasting your time 😕 I totally forgot to support the case when somebody enters more than one package and when our alias package is somewhere after the first spot…

For example:

npq install express axios jquery2@npm:jquery@2

Read more comments on GitHub >

github_iconTop Results From Across the Web

tsc-alias - npm
Replace alias paths with relative paths after typescript compilation. You can add aliases that reference other projects outside your tsconfig.
Read more >
npm packages in the Package Registry - GitLab Documentation
Watch a video demo of how to publish npm packages to the GitLab Package Registry. ... Package name does not meet the naming...
Read more >
How to use module path aliases in Visual Studio Code ...
Typescript does not emit the resolved aliased path to JavaScript, which means that without some help, your JavaScript application won't be ...
Read more >
Path aliases with TypeScript in Node.js - DEV Community ‍ ‍
In TypeScript you can avoid these "bad" looking imports with the help of path aliases. With path aliases you can declare aliases that...
Read more >
Working with the AWS CDK in JavaScript
For the most part, this guide assumes you install the CDK Toolkit globally ( npm install -g aws-cdk ), and the provided command...
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