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
node --redirect-warnings=file -p 'GLOBAL.foo = 1'# ok
node -p 'GLOBAL.foo = 1' --redirect-warnings=file # ok
You'll get no errors. But if you'll try to execute this:
node −−help
You'll get the same error as in your case:
Error: Cannot find module '/Users/daynin/−−help'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
Other command line tools cannot parse this minus sign as well
I tried various invocations but none seem to really work:
The text was updated successfully, but these errors were encountered: