About package.json scripts #4
Answered
by
sbsoso0411
encourage317125
asked this question in
Q&A
-
|
How can I write node running scripts on Ubuntu? |
Beta Was this translation helpful? Give feedback.
Answered by
sbsoso0411
Sep 21, 2022
Replies: 1 comment
-
|
You must use export on Ubuntu instaed of SET on Windows. Here are the examples. "mobile-windows": "SET NODE_SVIL=mobile&SET NODE_ENV=development&nodemon app.js", |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
encourage317125
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You must use export on Ubuntu instaed of SET on Windows.
And also should care about some white spaces.
Here are the examples.
"mobile-windows": "SET NODE_SVIL=mobile&SET NODE_ENV=development&nodemon app.js",
"mobile-ubuntu": "export NODE_SVIL=mobile && export NODE_ENV=development && nodemon app.js",