2016-10-15 2 views
0

저는 KeystoneJs 프레임 워크가있는 간단한 CMS를 가지고 있습니다. 그것의 배치는 푸른 하늘에 배치를 일으키는 커밋을 만들 때 실패합니다.Azure에서 노드 배포가 실패합니다 (KeystoneJs CMS)

저는 표준 계층에서 실행되는 Azure App Services를 사용하고 있습니다.

Windows에서 Node-gyp과 관련된 문제가 있었지만 this에 따르면 문제가 수정되었습니다.

지금은 FTP 배포를 사용하고 있습니다.

저는 노드에 익숙하지 않아 문제를 진단하는 최선의 단계가 무엇인지 확신 할 수 없습니다.

여기 여기에 package.json에게

{ 
    "name": "MyApp", 
    "version": "0.0.0", 
    "private": true, 
    "dependencies": { 
    "keystone": "^0.3.22", 
    "async": "^1.5.0", 
    "lodash": "^4.13.1", 
    "dotenv": "^2.0.0" 
    }, 
    "devDependencies": { 
    "eslint": "^2.12.0", 
    "eslint-config-keystone": "^2.3.1", 
    "eslint-plugin-react": "^5.1.1", 
    "gulp": "^3.7.0", 
    "gulp-shell": "^0.5.0", 
    "gulp-watch": "^4.3.5" 
    }, 
    "engines": { 
    "node": "6.7.0", 
    "npm": "3.9.5" 
    }, 
    "scripts": { 
    "lint": "eslint .", 
    "start": "node keystone.js" 
    } 
} 

있어 NPM의 출력이 쿠두

에 설치의
D:\home\site\wwwroot>npm install 
npm WARN package.json [email protected] assert is also the name of a node core module. 
npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] No description 
npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] No description 
npm WARN package.json [email protected] No description 
npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] buffer is also the name of a node core module. 
npm WARN package.json [email protected] crypto is also the name of a node core module. 
npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] events is also the name of a node core module. 
npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] querystring is also the name of a node core module. 
npm WARN package.json [email protected] punycode is also the name of a node core module. 
npm WARN package.json [email protected] string_decoder is also the name of a node core module. 
npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] url is also the name of a node core module. 
npm WARN package.json [email protected] util is also the name of a node core module. 

> [email protected] install D:\home\site\wwwroot\node_modules\bson 
> (node-gyp rebuild 2> builderror.log) || (exit 0) 


D:\home\site\wwwroot\node_modules\bson>node "D:\Program Files (x86)\npm\1.4.28\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild 

> [email protected] install D:\home\site\wwwroot\node_modules\buffertools 
> node-gyp rebuild 


D:\home\site\wwwroot\node_modules\buffertools>node "D:\Program Files (x86)\npm\1.4.28\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild 
Traceback (most recent call last): 
    File "D:\Program Files (x86)\npm\1.4.28\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py", line 18, in <module> 
    sys.exit(gyp.script_main()) 
    File "D:\Program Files (x86)\npm\1.4.28\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 534, in script_main 
    return main(sys.argv[1:]) 
    File "D:\Program Files (x86)\npm\1.4.28\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 527, in main 
    return gyp_main(args) 
    File "D:\Program Files (x86)\npm\1.4.28\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 503, in gyp_main 
    options.circular_check) 
    File "D:\Program Files (x86)\npm\1.4.28\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 98, in Load 
    generator.CalculateVariables(default_variables, params) 
    File "D:\Program Files (x86)\npm\1.4.28\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 1867, in CalculateVariables 
    generator_flags.get('msvs_version', 'auto')) 
    File "D:\Program Files (x86)\npm\1.4.28\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\MSVSVersion.py", line 402, in SelectVisualStudioVersion 
    versions = _DetectVisualStudioVersions(version_map[version], 'e' in version) 
KeyError: '2015' 


npm ERR! [email protected] install: `node-gyp rebuild` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] install script. 
npm ERR! This is most likely a problem with the buffertools package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node-gyp rebuild 
npm ERR! You can get their info via: 
npm ERR!  npm owner ls buffertools 
npm ERR! There is likely additional logging output above. 
npm ERR! System Windows_NT 6.2.9200 
npm ERR! command "node" "D:\\Program Files (x86)\\npm\\1.4.28\\node_modules\\npm\\bin\\npm-cli.js" "install" 
npm ERR! cwd D:\home\site\wwwroot 
npm ERR! node -v v0.10.32 
npm ERR! npm -v 1.4.28 
npm ERR! code ELIFECYCLE 

은 문제를 진단하기 위해 더 많은 정보가 필요하면 알려 주시기 바랍니다. 귀하의 package.json

답변

0

는 다음과 같은 엔진을 지정

"engines": { 
    "node": "6.7.0", 
    "npm": "3.9.5" 
} 

를 ...하지만 그것은 (당신이 게시 된 디버그 정보에서 가져온) 노드 v0.10.x 및 NPM의 v1.x

를 실행하는 서버처럼 보이는

KeystoneJS 노드> = 0.12.x를 필요로하고 노드 사기꾼 문제에 링크 된 문제의 정보에서 NPM의 v2.11.2

는 노드와 NPM 버전을 업데이트하는 경우, 그것은해야에서 수정되었습니다 일을 시작하다.

+0

감사합니다. Jed. Bizarre, 나는 package.json에서 엔진을 지정하는 것이 azure가 올바른 버전을 사용한다고 말할 것입니다. 아침에 확인 할거야. – MrBliz

관련 문제