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.

does not honor prefix set in /usr/etc/npmrc, always tries to look in /usr/lib/node_modules

See original GitHub issue

npm-check does not get the globalconfig set in /usr/ect/npmrc. It keeps looking in /usr/lib/node_modules

; globalconfig /usr/etc/npmrc
prefix = "/opt/node-global-apps"

I noted similar issues going back two years. Looks like using the global-modules and NODE_PATH do not consider that someone would be setting their own custom global path in an npmrc. Will even throw the NODE_PATH error if /usr/lib/node_modules does not exist (which it doesn’t in my case because I’ve purposely moved it)

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
dkeblercommented, Feb 26, 2020

Sadly this seems a dead project. Still at 5.9 so this issue has not been addressed. see npm-check-updates for a project that access the correct global store.

0reactions
digeomelcommented, May 27, 2020

I agree with @dkebler . I love the interactive UI of npm-check, but until this issue is fixed, I’m using npm-check-updates for the same reason. And I have read their code, even contributed to the discussion on what’s the best way to get the prefix, which apparently is not as obvious as it should be.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prefix, Base Word, Suffix
A base word can stand alone and has meaning (for example, help). A suffix is a word part added to the end of...
Read more >
English Grammar: Negative Prefixes - "un", "dis", "in", "im", "non"
Unsure when to use "insure"? This grammar lesson on prefixes will help you understand some of the prefixes that are common in English....
Read more >
Prefix and suffix for naming in extensions - Business Central
Use the AppSourceCop tool to find all missing prefixes and/or suffixes. Configuration options for this tool can be found here.
Read more >
Longest prefix which is also suffix - GeeksforGeeks
Simple Solution: Since overlapping prefixes and suffixes is not allowed, we break the string from the middle and start matching left and right...
Read more >
Word Parts: Prefixes, Roots, & Suffixes
alternative to looking in the dictionary is to break the word into parts and analyze the meaning of each ... Words do not...
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