Extraneous Library Linkage
If your program calls functions in A that don't reference B then B is not required either at link or load time, assuming that the functions in A are in separate compilation units, which is usually the case for a library.
The linker will pull the functions from the library that C uses and since none of them call functions in B, B will not be needed.
How to fix eslint error - extraneous node/no-extraneous-require
Exactly as error description says
If a require()'s target is extraneous (it's not written in package.json), the program works in local, but will not work after dependencies are re-installed. It will cause troubles to your team/contributors. This rule disallows require() of extraneous modules.
But if it's how you need to do it anyway the you can add an exception in your rules
"rules": {
"node/no-extraneous-require": ["error", {
"allowModules": ["yourModule"]
}]
}
npm windows install globally results in npm ERR! extraneous
npm ERR! extraneous
means a package is installed but is not listed in your project's package.json
.
Since you're listing packages that have been installed globally, it's going to give you a lot of extraneous errors that can be simply ignored because most things installed globally will not be in your project's package.json
.
Related Topics
Bash Exit Script from Inside a Function
Gradle 1.3: Build.Gradle Not Building Classes
Capturing User-Space Assembly with Ftrace and Kprobes (By Using Virtual Address Translation)
Why Is My Core File Not Overwritten
Linux Device Driver File Operations: It Is Possible to Have Race Conditions
Linux/Glibc. How to Use Fprintf in Signal Handler
How Does/Frequent Unix Tee Command Write Stdout Terminal Output to File? If The Output Is Too Big
Gnuplot-Like Program for Timeline Data
Error When Bootstrapping Cmake:Log of Errors
Path Environment Variable in Linux
Is There Compatible Odbc Driver with Mariadb 10 on Linux
Azure Cli Aks Install Cli Permission Denied and Sudo Does Not Work
Bash Script Counting Instances of Itself Wrongly
How to Fix Urllib3 Runtimeerror: Requests Dependency 'Urllib3' Must Be Version >= 1.21.1, < 1.22
"Relocation R_X86_64_32S Against '.Bss' Can Not Be Used When Making a Shared Object"