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
Copy file name to clipboardExpand all lines: src/checks/nodejs-version.ts
+6-17
Original file line number
Diff line number
Diff line change
@@ -1,34 +1,23 @@
1
-
importboxenfrom'boxen';
2
-
importchalkfrom'chalk';
3
1
import{stripIndent}from'common-tags';
4
-
importsizefrom'window-size';
5
-
importwrapAnsifrom'wrap-ansi';
2
+
import{warningMessage}from'../printers/utils';
6
3
7
4
constSERVERLESS_NODE_JS_VERSION='8.10';
8
5
9
6
exportfunctionprintVersionWarning(
10
7
nodeVersion: string,
11
8
expectedVersion: string
12
9
): void{
13
-
constmsg=chalk`
14
-
{underline.bold {yellow WARNING!} {bold Different Node.js version}}
15
-
10
+
consttitle='Different Node.js Version Found';
11
+
constmsg=stripIndent`
16
12
You are currently running Node.js ${nodeVersion} on this local machine. The production environment for Twilio Serverless is currently on ${expectedVersion}.
17
13
18
14
When you deploy to Twilio Serverless, you may encounter differences between local development and production.
19
15
20
16
For a more accurate local development experience, please switch your Node.js version.
21
17
A tool like nvm (https://github.com/creationix/nvm) can help.
0 commit comments