How to set nodejs version in azure
up vote
0
down vote
favorite
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 azure deployment devops angular7
New contributor
|
show 4 more comments
up vote
0
down vote
favorite
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 azure deployment devops angular7
New contributor
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
2 days ago
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
2 days ago
@JRichardsz I've updated the post, pls have alook
– Kenana Reda
2 days ago
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
2 days ago
According to your log, you need a dependency. Try this : npm install --save-dev @angular-devkit/build-angular
– JRichardsz
2 days ago
|
show 4 more comments
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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 azure deployment devops angular7
New contributor
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 azure deployment devops angular7
angular azure deployment devops angular7
New contributor
New contributor
edited yesterday
New contributor
asked 2 days ago
Kenana Reda
86
86
New contributor
New contributor
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
2 days ago
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
2 days ago
@JRichardsz I've updated the post, pls have alook
– Kenana Reda
2 days ago
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
2 days ago
According to your log, you need a dependency. Try this : npm install --save-dev @angular-devkit/build-angular
– JRichardsz
2 days ago
|
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
2 days ago
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
2 days ago
@JRichardsz I've updated the post, pls have alook
– Kenana Reda
2 days ago
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
2 days ago
According to your log, you need a dependency. Try this : npm install --save-dev @angular-devkit/build-angular
– JRichardsz
2 days ago
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
2 days ago
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
2 days ago
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
2 days ago
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
2 days ago
@JRichardsz I've updated the post, pls have alook
– Kenana Reda
2 days ago
@JRichardsz I've updated the post, pls have alook
– Kenana Reda
2 days ago
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
2 days ago
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
2 days ago
According to your log, you need a dependency. Try this : npm install --save-dev @angular-devkit/build-angular
– JRichardsz
2 days ago
According to your log, you need a dependency. Try this : npm install --save-dev @angular-devkit/build-angular
– JRichardsz
2 days ago
|
show 4 more comments
2 Answers
2
active
oldest
votes
up vote
0
down vote
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.json
and set "engines" to "8.11.1", I've updated the post
– Kenana Reda
2 days ago
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
2 days ago
add a comment |
up vote
0
down vote
accepted
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"
New contributor
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
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.json
and set "engines" to "8.11.1", I've updated the post
– Kenana Reda
2 days ago
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
2 days ago
add a comment |
up vote
0
down vote
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.json
and set "engines" to "8.11.1", I've updated the post
– Kenana Reda
2 days ago
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
2 days ago
add a comment |
up vote
0
down vote
up vote
0
down vote
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 2 days ago
Mukesh Kumar
330112
330112
Thanks for answering, I have specified node version inpackage.json
and set "engines" to "8.11.1", I've updated the post
– Kenana Reda
2 days ago
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
2 days ago
add a comment |
Thanks for answering, I have specified node version inpackage.json
and set "engines" to "8.11.1", I've updated the post
– Kenana Reda
2 days ago
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
2 days ago
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
2 days ago
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
2 days ago
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
2 days ago
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
2 days ago
add a comment |
up vote
0
down vote
accepted
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"
New contributor
add a comment |
up vote
0
down vote
accepted
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"
New contributor
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
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"
New contributor
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"
New contributor
New contributor
answered yesterday
Kenana Reda
86
86
New contributor
New contributor
add a comment |
add a comment |
Kenana Reda is a new contributor. Be nice, and check out our Code of Conduct.
Kenana Reda is a new contributor. Be nice, and check out our Code of Conduct.
Kenana Reda is a new contributor. Be nice, and check out our Code of Conduct.
Kenana Reda is a new contributor. Be nice, and check out our Code of Conduct.
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
2 days ago
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
2 days ago
@JRichardsz I've updated the post, pls have alook
– Kenana Reda
2 days ago
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
2 days ago
According to your log, you need a dependency. Try this : npm install --save-dev @angular-devkit/build-angular
– JRichardsz
2 days ago