VSO (Visual Studio Online)의 지속적인 전달/배포를 통해 배포되는 node.js API 응용 프로그램이 있습니다.Azure node.js API 응용 프로그램 - 런타임 중에 실패 함 (node.js 버전 문제 일 수 있음)
'express'와 같은 모듈을 가져올 때 응용 프로그램이 작동하지 않는다는 것을 발견했습니다. 하늘색 기계에 Kudo 콘솔을 통해 'express'를 설치했습니다. 하지만 그건 도움이되지 못했습니다.
내가 출력 콘솔에 표시되는 런타임 오류 : 내가 노드> 4.를 사용하는 제안되는이 article를 참조했다
Application has thrown an uncaught exception and is terminated:
SyntaxError: Unexpected token ILLEGAL
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (D:\home\node_modules\tedious\lib\tedious.js:4:29)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
주하지만 당신은 내 package.json에서 볼 수 있듯이
{
"name": "my_API_Service",
"engines": {
"node": "6.11",
"npm": "1.1.65"
},
"version": "1.0.0",
"description": "",
"main": "MyService.js",
"dependencies": {
"async": "^2.6.0",
"body-parser": "^1.18.2",
"express": "^4.16.2",
"http": "0.0.0",
"sequelize": "^4.28.6",
"swaggerize-express": "^4.0.5",
"swaggerize-ui": "^1.0.1",
"tedious": "^2.1.5"
},
"devDependencies": {
"gulp": "^3.9.1",
"gulp-util": "^3.0.8"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://<my_api_service_url>"
},
"author": "",
"license": "ISC"
============= 휴일 ====== : 내가 명시 적> 6.
package.json은 다음과 같습니다 노드를 참조하고 ======== = 우선
I finally got my app running (very intuitively might i add) by configuring it on Windows OS (instead of Linux OS). I was really set on having it run on Linux, but it turned out to be a walk thru a mine field.
package.json 파일에 무엇이 있습니까? 또한 CD가 "npm run"을 사용하여 실행되도록하십시오. 그러면 모듈이 모두 설치됩니다. 내 빌드 정의에서 –
첫 번째 단계는 "npm install"입니다. 대신 이것이 "npm run"이되어야한다는 뜻입니까? 아니면 "npm install -g npm-run"을 의미합니까? – AlvinfromDiaspar