Skip to content

Commit

Permalink
make 'debug' as dependencies
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Simon Lu authored Jan 14, 2021
1 parent db771b1 commit 9227630
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@
"url": "https:/sponsors/RubenVerborgh"
}
],
"peerDependenciesMeta": {
"debug": {
"optional": true
}
"dependencies": {
"debug": "^4.3.1"
},
"devDependencies": {
"concat-stream": "^2.0.0",
Expand Down

0 comments on commit 9227630

Please sign in to comment.