Skip to content

Commit ddd339f

Browse files
Trottaddaleax
authored andcommitted
repl: use _Node.js_ in user-facing REPL text
We use _node (REPL)_ in one place and _Node.js (REPL)_ in another place in error messages in repl.js. Use _Node.js_ in both places. PR-URL: #34644 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent b1890e0 commit ddd339f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/repl.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ function REPLServer(prompt,
814814

815815
if (e && !self[kBufferedCommandSymbol] && cmd.trim().startsWith('npm ')) {
816816
self.output.write('npm should be run outside of the ' +
817-
'node REPL, in your normal shell.\n' +
817+
'Node.js REPL, in your normal shell.\n' +
818818
'(Press Control-D to exit.)\n');
819819
self.displayPrompt();
820820
return;

test/parallel/test-repl.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ const errorTests = [
372372
{
373373
send: 'npm install foobar',
374374
expect: [
375-
'npm should be run outside of the node REPL, in your normal shell.',
375+
'npm should be run outside of the Node.js REPL, in your normal shell.',
376376
'(Press Control-D to exit.)'
377377
]
378378
},

0 commit comments

Comments
 (0)