inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

리액트로 나만의 블로그 만들기(MERN Stack)

안녕하세요 . greenlock에서 오류가 발생합니다.

313

송지훈

작성한 질문수 28

0

C:\Users\thdwl\OneDrive\바탕 화면\myBlog\blog>npx greenlock init --config-dir ./server/config/greenlock.d --maintainer-email 'thdwlgnsl@naver.com'

(node:9388) UnhandledPromiseRejectionWarning: Error: missing or malformed `maintainerEmail` (or `author` from `package.json`), which is used as the contact for support notices

    at Object.Init._init (C:\Users\thdwl\OneDrive\바탕 화면\myBlog\blog\node_modules\@root\greenlock\lib\init.js:110:19)

    at Object.greenlock._create (C:\Users\thdwl\OneDrive\바탕 화면\myBlog\blog\node_modules\@root\greenlock\greenlock.js:58:22)

    at Object.G.create (C:\Users\thdwl\OneDrive\바탕 화면\myBlog\blog\node_modules\@root\greenlock\greenlock.js:482:15)

    at C:\Users\thdwl\OneDrive\바탕 화면\myBlog\blog\node_modules\@root\greenlock\bin\init.js:56:31

    at Object.CLI.main (C:\Users\thdwl\OneDrive\바탕 화면\myBlog\blog\node_modules\@root\greenlock\bin\lib\cli.js:176:5)

    at Object.<anonymous> (C:\Users\thdwl\OneDrive\바탕 화면\myBlog\blog\node_modules\@root\greenlock\bin\init.js:23:5)

    at Module._compile (internal/modules/cjs/loader.js:1137:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)

    at Module.load (internal/modules/cjs/loader.js:985:32)

    at Function.Module._load (internal/modules/cjs/loader.js:878:14)

    at Module.require (internal/modules/cjs/loader.js:1025:19)

    at require (internal/modules/cjs/helpers.js:72:18)

    at C:\Users\thdwl\OneDrive\바탕 화면\myBlog\blog\node_modules\@root\greenlock\bin\greenlock.js:18:9

    at Array.some (<anonymous>)

    at Object.<anonymous> (C:\Users\thdwl\OneDrive\바탕 화면\myBlog\blog\node_modules\@root\greenlock\bin\greenlock.js:16:3)

    at Module._compile (internal/modules/cjs/loader.js:1137:30)

(node:9388) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

(node:9388) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

invalid maintainer contact info: null

app.all('*', (reqresnext=> {
  let protocol = req.headers['x-forward-proto'|| req.protocol;
  if (protocol === 'https') {
    // if(req.secure)
    next();
  } else {
    let to = `https://${req.hostname}${req.url}`;
    res.redirect(to);
  }
});

greenlock
  .init({
    packageRoot: path.join(__dirname, '../'),
    configDir: path.join(__dirname, '../''server/config/greenlock.d'),
    maintainerEmail: 'thdwlgnsl@naver.com',
    cluster: false,
  })
  .serve(app, () => {
    console.log('greenlock work');
 });

이유를 찾아 보곤 있는데 찾게 되면 바로 댓글 달겠습니다.

감사합니다.

항상 좋은 답변 감사합니다.

express react redux mongodb nodejs bootstrap

답변 1

0

싸플

혹시 뭔가 잘 안되셔서 여러번 작동시키신거 아니신가요? 

 Error: missing or malformed `maintainerEmail` (or `author` from `package.json`), which is used as the contact for support notices

여기 이렇게 에러 이유가 나와있네요. 한번 이메일 주소를 바꿔서 진행해보시길 권해드립니다. 

npm run dev-watch 오류

0

77

1

npm i react-redex redux-saga react-router-dom connected-react-router bootstrap reactstrap dotenv 명령어 설치하면 에러날까요?

0

441

1

mongodb 자세히 알고 싶습니다

0

265

1

강의 듣으면서...포스트 맨도 안됩니다

0

248

1

혹시 gatsby 생성하는 명령어 하는지 알고 싶습니다

0

275

1

webpack 설정 문제입니다.

0

310

1

Category관련 질문

0

234

1

https://www.ssaple.net/ 블로그 접속이 되질 않아요.

0

312

1

리액트 버전 오류 나시는 분들 참고

0

483

1

react 18버전에서의 connected-react-router 가 설치가안됩니다

0

1070

1

jwt.sign() 에서의 질문입니다.

0

208

1

ssaple.net 접속이 안됩니다.

0

369

1

Media(Video) 파일 첨부관련 질문

0

297

1

페이지 Link를 이용한 페이지 이동이 안됩니다

0

340

1

webpack.config.js 설정

0

834

1

몽고db 사이트가 많이 바뀌어서

0

346

1

선생님 req에 아무것도 안들어오는데 혹시 뭐가문제일까요 ?

0

303

1

안녕하세요 강의 잘 보고 있습니다 질문 하나 있는데요 ..

0

1587

1

그대로 따라하였고 하루종일 reboot하는데 되지않습니다..

0

214

1

Encountered two children with the same key 에러..

0

866

1

강사님 redux에러 질문이요

1

245

2

선생님 왜 저는 백날해도 collapse 내용이 link아래로 갈까요?

0

351

2

postDetail scss 문제

0

236

3

강사님 포스트 디테일 부분을 똑같이 작성하였는데 이런 오류가 나서 도저히 방법을 모르겠습니다 ㅠㅠ

0

212

1