인프런 커뮤니티 질문&답변

김한석님의 프로필 이미지

작성한 질문수

스프링과 JPA 기반 웹 애플리케이션 개발

프로젝트 실행하기 강의에서 compile 클릭시

23.05.18 10:53 작성

·

613

0

[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.8.0:npm (npm install) on project studyolle: Failed to run task: 'npm install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 236 (Exit value: 236) -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

해당 오류가 찍히는데 버전 문제일까요.?

답변 1

1

백기선님의 프로필 이미지
백기선
지식공유자

2023. 05. 18. 14:02

저한테는 문제가 재현되지 않고 잘 동작하고 있어서 어떤 문제인지 추측하기 어려운데요.

혹시 pom.xml에서 해당 플러그인 설정에 보시면

<frontend-maven-plugin.version>1.6</frontend-maven-plugin.version> <node.version>v12.18.1</node.version> <npm.version>6.14.5</npm.version>

이렇게 노드js랑 npm 버전 설정하는 부분이 있는데요. 여기서 로컬에 설치되어 있는 노드js랑 npm 버전으로 변경한 다음에 실행해 보시겠어요?

김한석님의 프로필 이미지
김한석
질문자

2023. 05. 18. 16:46

강사님! 프로젝트 실행하기 강의는 그냥 넘어가고 다음 강의들이 그냥 처음부터 해볼 수 있는거라서 따라하면서 터미널에서 npm설치하는 부분 강의따라하니까 잘 다운받아집니다! 답변 감사합니다!

백기선님의 프로필 이미지
백기선
지식공유자

2023. 05. 19. 01:02

아.. 그럼 로컬에 npm이 설치가 안되서 그랬었나 보네요.