How to set nodejs version in azure
I'm deploying angular 7 app to Azure using bitbucket, I'm using this script in package.json
"scripts": {
"ng": "ng",
"start-ng": "ng serve",
"build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"postinstall": "npm run build"
},
"engines": {
"node": "8.11.1"
},
and set Application directory to
sitewwwrootdistmyapp
but it failed, here is the log
Running deployment command
I've deployed angular 5 app to Azure in the same way previously and it works fine
Updates
I've set the default node and npm version in package.json and add them as default variable in Application setting
so the new errors is
log
angular
|
show 4 more comments
I'm deploying angular 7 app to Azure using bitbucket, I'm using this script in package.json
"scripts": {
"ng": "ng",
"start-ng": "ng serve",
"build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"postinstall": "npm run build"
},
"engines": {
"node": "8.11.1"
},
and set Application directory to
sitewwwrootdistmyapp
but it failed, here is the log
Running deployment command
I've deployed angular 5 app to Azure in the same way previously and it works fine
Updates
I've set the default node and npm version in package.json and add them as default variable in Application setting
so the new errors is
log
angular
Hi Kenada, welcome to S.O!! How are you deploying your code to azure? Are you using some kind of functionality like heroku? What is the s.o of your box in azure?
– JRichardsz
Nov 19 '18 at 14:16
Hi @JRichardsz well, I don't use heroku, I'm only execute this script inpackage.json, by defualt, there is default deployment command from kudu that is executed
– Kenana Reda
Nov 19 '18 at 14:57
@JRichardsz I've updated the post, pls have alook
– Kenana Reda
Nov 19 '18 at 15:03
I can see in your log, you use windows as server. My first advice is : Windows is not the best choice to work with nodejs. Linux box or a minimal linux docker container is the best choice to work with nodejs in production
– JRichardsz
Nov 19 '18 at 21:15
According to your log, you need a dependency. Try this : npm install --save-dev @angular-devkit/build-angular
– JRichardsz
Nov 19 '18 at 21:17
|
show 4 more comments
I'm deploying angular 7 app to Azure using bitbucket, I'm using this script in package.json
"scripts": {
"ng": "ng",
"start-ng": "ng serve",
"build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"postinstall": "npm run build"
},
"engines": {
"node": "8.11.1"
},
and set Application directory to
sitewwwrootdistmyapp
but it failed, here is the log
Running deployment command
I've deployed angular 5 app to Azure in the same way previously and it works fine
Updates
I've set the default node and npm version in package.json and add them as default variable in Application setting
so the new errors is
log
angular
I'm deploying angular 7 app to Azure using bitbucket, I'm using this script in package.json
"scripts": {
"ng": "ng",
"start-ng": "ng serve",
"build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"postinstall": "npm run build"
},
"engines": {
"node": "8.11.1"
},
and set Application directory to
sitewwwrootdistmyapp
but it failed, here is the log
Running deployment command
I've deployed angular 5 app to Azure in the same way previously and it works fine
Updates
I've set the default node and npm version in package.json and add them as default variable in Application setting
so the new errors is
log
angular
angular
edited Nov 20 '18 at 8:02
Kenana Reda
asked Nov 19 '18 at 11:24
Kenana RedaKenana Reda
188
188
Hi Kenada, welcome to S.O!! How are you deploying your code to azure? Are you using some kind of functionality like heroku? What is the s.o of your box in azure?
– JRichardsz
Nov 19 '18 at 14:16
Hi @JRichardsz well, I don't use heroku, I'm only execute this script inpackage.json, by defualt, there is default deployment command from kudu that is executed
– Kenana Reda
Nov 19 '18 at 14:57
@JRichardsz I've updated the post, pls have alook
– Kenana Reda
Nov 19 '18 at 15:03
I can see in your log, you use windows as server. My first advice is : Windows is not the best choice to work with nodejs. Linux box or a minimal linux docker container is the best choice to work with nodejs in production
– JRichardsz
Nov 19 '18 at 21:15
According to your log, you need a dependency. Try this : npm install --save-dev @angular-devkit/build-angular
– JRichardsz
Nov 19 '18 at 21:17
|
show 4 more comments
Hi Kenada, welcome to S.O!! How are you deploying your code to azure? Are you using some kind of functionality like heroku? What is the s.o of your box in azure?
– JRichardsz
Nov 19 '18 at 14:16
Hi @JRichardsz well, I don't use heroku, I'm only execute this script inpackage.json, by defualt, there is default deployment command from kudu that is executed
– Kenana Reda
Nov 19 '18 at 14:57
@JRichardsz I've updated the post, pls have alook
– Kenana Reda
Nov 19 '18 at 15:03
I can see in your log, you use windows as server. My first advice is : Windows is not the best choice to work with nodejs. Linux box or a minimal linux docker container is the best choice to work with nodejs in production
– JRichardsz
Nov 19 '18 at 21:15
According to your log, you need a dependency. Try this : npm install --save-dev @angular-devkit/build-angular
– JRichardsz
Nov 19 '18 at 21:17
Hi Kenada, welcome to S.O!! How are you deploying your code to azure? Are you using some kind of functionality like heroku? What is the s.o of your box in azure?
– JRichardsz
Nov 19 '18 at 14:16
Hi Kenada, welcome to S.O!! How are you deploying your code to azure? Are you using some kind of functionality like heroku? What is the s.o of your box in azure?
– JRichardsz
Nov 19 '18 at 14:16
Hi @JRichardsz well, I don't use heroku, I'm only execute this script in
package.json , by defualt, there is default deployment command from kudu that is executed– Kenana Reda
Nov 19 '18 at 14:57
Hi @JRichardsz well, I don't use heroku, I'm only execute this script in
package.json , by defualt, there is default deployment command from kudu that is executed– Kenana Reda
Nov 19 '18 at 14:57
@JRichardsz I've updated the post, pls have alook
– Kenana Reda
Nov 19 '18 at 15:03
@JRichardsz I've updated the post, pls have alook
– Kenana Reda
Nov 19 '18 at 15:03
I can see in your log, you use windows as server. My first advice is : Windows is not the best choice to work with nodejs. Linux box or a minimal linux docker container is the best choice to work with nodejs in production
– JRichardsz
Nov 19 '18 at 21:15
I can see in your log, you use windows as server. My first advice is : Windows is not the best choice to work with nodejs. Linux box or a minimal linux docker container is the best choice to work with nodejs in production
– JRichardsz
Nov 19 '18 at 21:15
According to your log, you need a dependency. Try this : npm install --save-dev @angular-devkit/build-angular
– JRichardsz
Nov 19 '18 at 21:17
According to your log, you need a dependency. Try this : npm install --save-dev @angular-devkit/build-angular
– JRichardsz
Nov 19 '18 at 21:17
|
show 4 more comments
2 Answers
2
active
oldest
votes
You are running version v0.10.40 of Node.js, which is not supported by Angular CLI v6 and above.
The official Node.js version that is supported is 8.9 and greater.
Please visit https://nodejs.org/en/ to find the instructions on how to update Node.js
Thanks for answering, I have specified node version inpackage.jsonand set "engines" to "8.11.1", I've updated the post
– Kenana Reda
Nov 19 '18 at 12:38
so don't know Why this error is appear!, even I choose node version, and at the beginning in the log you van notice that the selected node version is 8.11.1
– Kenana Reda
Nov 19 '18 at 12:41
add a comment |
The answer was adding
WEBSITE_NODE_DEFAULT_VERSION in Application setting string, even adding
"engines": {
"node": "8.11.1"
},
in package.json have no effect, another solution is to add issnode.yml file and to project file
and add this command to itnodeProcessCommandLine: "D:Program Files (x86)nodejs8.11.1node.exe"
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53373603%2fhow-to-set-nodejs-version-in-azure%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You are running version v0.10.40 of Node.js, which is not supported by Angular CLI v6 and above.
The official Node.js version that is supported is 8.9 and greater.
Please visit https://nodejs.org/en/ to find the instructions on how to update Node.js
Thanks for answering, I have specified node version inpackage.jsonand set "engines" to "8.11.1", I've updated the post
– Kenana Reda
Nov 19 '18 at 12:38
so don't know Why this error is appear!, even I choose node version, and at the beginning in the log you van notice that the selected node version is 8.11.1
– Kenana Reda
Nov 19 '18 at 12:41
add a comment |
You are running version v0.10.40 of Node.js, which is not supported by Angular CLI v6 and above.
The official Node.js version that is supported is 8.9 and greater.
Please visit https://nodejs.org/en/ to find the instructions on how to update Node.js
Thanks for answering, I have specified node version inpackage.jsonand set "engines" to "8.11.1", I've updated the post
– Kenana Reda
Nov 19 '18 at 12:38
so don't know Why this error is appear!, even I choose node version, and at the beginning in the log you van notice that the selected node version is 8.11.1
– Kenana Reda
Nov 19 '18 at 12:41
add a comment |
You are running version v0.10.40 of Node.js, which is not supported by Angular CLI v6 and above.
The official Node.js version that is supported is 8.9 and greater.
Please visit https://nodejs.org/en/ to find the instructions on how to update Node.js
You are running version v0.10.40 of Node.js, which is not supported by Angular CLI v6 and above.
The official Node.js version that is supported is 8.9 and greater.
Please visit https://nodejs.org/en/ to find the instructions on how to update Node.js
answered Nov 19 '18 at 12:36
Mukesh KumarMukesh Kumar
336112
336112
Thanks for answering, I have specified node version inpackage.jsonand set "engines" to "8.11.1", I've updated the post
– Kenana Reda
Nov 19 '18 at 12:38
so don't know Why this error is appear!, even I choose node version, and at the beginning in the log you van notice that the selected node version is 8.11.1
– Kenana Reda
Nov 19 '18 at 12:41
add a comment |
Thanks for answering, I have specified node version inpackage.jsonand set "engines" to "8.11.1", I've updated the post
– Kenana Reda
Nov 19 '18 at 12:38
so don't know Why this error is appear!, even I choose node version, and at the beginning in the log you van notice that the selected node version is 8.11.1
– Kenana Reda
Nov 19 '18 at 12:41
Thanks for answering, I have specified node version in
package.json and set "engines" to "8.11.1", I've updated the post– Kenana Reda
Nov 19 '18 at 12:38
Thanks for answering, I have specified node version in
package.json and set "engines" to "8.11.1", I've updated the post– Kenana Reda
Nov 19 '18 at 12:38
so don't know Why this error is appear!, even I choose node version, and at the beginning in the log you van notice that the selected node version is 8.11.1
– Kenana Reda
Nov 19 '18 at 12:41
so don't know Why this error is appear!, even I choose node version, and at the beginning in the log you van notice that the selected node version is 8.11.1
– Kenana Reda
Nov 19 '18 at 12:41
add a comment |
The answer was adding
WEBSITE_NODE_DEFAULT_VERSION in Application setting string, even adding
"engines": {
"node": "8.11.1"
},
in package.json have no effect, another solution is to add issnode.yml file and to project file
and add this command to itnodeProcessCommandLine: "D:Program Files (x86)nodejs8.11.1node.exe"
add a comment |
The answer was adding
WEBSITE_NODE_DEFAULT_VERSION in Application setting string, even adding
"engines": {
"node": "8.11.1"
},
in package.json have no effect, another solution is to add issnode.yml file and to project file
and add this command to itnodeProcessCommandLine: "D:Program Files (x86)nodejs8.11.1node.exe"
add a comment |
The answer was adding
WEBSITE_NODE_DEFAULT_VERSION in Application setting string, even adding
"engines": {
"node": "8.11.1"
},
in package.json have no effect, another solution is to add issnode.yml file and to project file
and add this command to itnodeProcessCommandLine: "D:Program Files (x86)nodejs8.11.1node.exe"
The answer was adding
WEBSITE_NODE_DEFAULT_VERSION in Application setting string, even adding
"engines": {
"node": "8.11.1"
},
in package.json have no effect, another solution is to add issnode.yml file and to project file
and add this command to itnodeProcessCommandLine: "D:Program Files (x86)nodejs8.11.1node.exe"
answered Nov 20 '18 at 8:06
Kenana RedaKenana Reda
188
188
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53373603%2fhow-to-set-nodejs-version-in-azure%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Hi Kenada, welcome to S.O!! How are you deploying your code to azure? Are you using some kind of functionality like heroku? What is the s.o of your box in azure?
– JRichardsz
Nov 19 '18 at 14:16
Hi @JRichardsz well, I don't use heroku, I'm only execute this script in
package.json, by defualt, there is default deployment command from kudu that is executed– Kenana Reda
Nov 19 '18 at 14:57
@JRichardsz I've updated the post, pls have alook
– Kenana Reda
Nov 19 '18 at 15:03
I can see in your log, you use windows as server. My first advice is : Windows is not the best choice to work with nodejs. Linux box or a minimal linux docker container is the best choice to work with nodejs in production
– JRichardsz
Nov 19 '18 at 21:15
According to your log, you need a dependency. Try this : npm install --save-dev @angular-devkit/build-angular
– JRichardsz
Nov 19 '18 at 21:17