diff options
Diffstat (limited to 'lib/repl.js')
-rw-r--r-- | lib/repl.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/repl.js b/lib/repl.js index 7d05f659f5..a43ff42d8d 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -448,7 +448,7 @@ function REPLServer(prompt, self.memory(cmd); self.wrappedCmd = false; - if (e && !self.bufferedCommand && cmd.trim().match(/^npm /)) { + if (e && !self.bufferedCommand && cmd.trim().startsWith('npm ')) { self.outputStream.write('npm should be run outside of the ' + 'node repl, in your normal shell.\n' + '(Press Control-D to exit.)\n'); |