New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make 'debug' as dependencies #148
Conversation
nodejs under v15.5.1 has a bug: it will cache MODULE_NOT_FOUND when require a non-exits file([issue](nodejs/node#26926)). ./debug.js try to require('debug'), if the 'debug' pkg not exits, nodejs will cache the result. Even install debug later in the same process(spawn npm install), require('debug') will still throw error so, we should make 'debug' pacakge as dependencies.
nodejs between v11.x - v15.5.1 has a bug: it will cache MODULE_NOT_FOUND when require a non-exits file([issue](nodejs/node#26926)). ./debug.js try to require('debug'), if the 'debug' pkg not exits, nodejs will cache the result. Even install debug later in the same process(spawn npm install), require('debug') will still throw error so, we should make 'debug' pacakge as dependencies.
Same problem, you can execute below commands by
By the way, according to the npm doc of But now, the So, I would suggest to mark |
@RubenVerborgh Thanks for your reply! I have read them before. Just like I said above, we are using the We have 3 ways to fix this:
The current problem is, you mark |
What I am reading is that:
The most logical conclusion seems that, given the rarity of the situation, you investigate a way to clear the cache of Node 15.
Not possible;
Idem, see linked issues.
See linked issues as well. |
@RubenVerborgh Thanks for your response!
Not only Node 15, but
Almost every CLI tool(
I was not saying we can assume "the I'm sorry I forget to give the way to check whether the package be installed, there are 2 ways to fix the
|
Yeah, but those tools don't run at application runtime. You're the first running into this issue.
I could accept a PR for that. |
Fixed in PR: #149 |
nodejs between v11.x - v15.5.1 has a bug: it will cache MODULE_NOT_FOUND when require a non-exits file(issue).
./debug.js try to require('debug'), if the 'debug' pkg not exits, nodejs will cache the result. Even install debug later in the same process(spawn npm install), require('debug') will still throw error
so, we should make 'debug' pacakge as dependencies.