We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 989d344 commit cbdf9a9Copy full SHA for cbdf9a9
lib/module.js
@@ -251,8 +251,8 @@ if (process.platform === 'win32') {
251
// The path segment separator check ('\' and '/') was used to get
252
// node_modules path for every path segment.
253
// Use colon as an extra condition since we can get node_modules
254
- // path for dirver root like 'C:\node_modules' and don't need to
255
- // parse driver name.
+ // path for drive root like 'C:\node_modules' and don't need to
+ // parse drive name.
256
if (code === 92/*\*/ || code === 47/*/*/ || code === 58/*:*/) {
257
if (p !== nmLen)
258
paths.push(from.slice(0, last) + '\\node_modules');
0 commit comments