does not honor prefix set in /usr/etc/npmrc, always tries to look in /usr/lib/node_modules
See original GitHub issuenpm-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:
- Created 4 years ago
- Reactions:1
- Comments:5
Top 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 >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
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.
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.