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
Cannot pass arguments with spaces in NODE_OPTIONS #21575
When using the NODE_OPTIONS env there is no way to quote arguments passed. This is problematic if you pass flags like -r where the path passed might have spaces in them.
To reproduce try saving this file as ./test case.js
console.log('hi')
Running node -r './test case.js' node prints hi, but running NODE_OPTIONS="-r './test case.js'" node results in an error.
Activity
mcollina commentedon Jun 28, 2018
This also happens on node 8.11.3.
richardlau commentedon Jun 28, 2018
This is a duplicate of #12971.