Translate

[NOMP] Error - SyntaxError: Use of const in strict mode






NOMP 설치 중 아래와 같이 오류가 발생하는 경우
https://github.com/zone117x/node-open-mining-portal/issues/512
1004lucifer

/home/pool/nomp/node_modules/request/node_modules/hawk/node_modules/boom/lib/index.js:5
const Hoek = require('hoek');
^^^^^
SyntaxError: Use of const in strict mode.
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. (/home/pool/nomp/node_modules/request/node_modules/hawk/lib/index.js:5:33)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)



아래와 같이 packaage.json 파일의 request 항목을 수정 후 다시 작업한다.

 # vi package.json
 "request": "*", => "request": "2.69.0",

 # npm update
 # node init.js




댓글