You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
node --require fails with Windows path separator #21918
with test.js in cwd, try to run: node -r .\test.js
Error:
internal/modules/cjs/loader.js:583
throw err;
^
Error: Cannot find module '.\test.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at Module._preloadModules (internal/modules/cjs/loader.js:805:12)
at preloadModules (internal/bootstrap/node.js:575:7)
at startup (internal/bootstrap/node.js:268:9)
at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)
Activity
joaocgreis commentedon Aug 8, 2018
Fix attempt: #22186
module: accept Windows relative path
module: accept Windows relative path