내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
해결됨

'npm ci' failed.

Avatar

Level 1

[INFO] Reactor Summary for CUB Practice 1.0.0-SNAPSHOT:
[INFO]
[INFO] CUB Practice ....................................... SUCCESS [ 0.592 s]
[INFO] CUB Practice - Core ................................ SUCCESS [ 10.226 s]
[INFO] CUB Practice - UI Frontend ......................... FAILURE [ 1.800 s]
[INFO] CUB Practice - Repository Structure Package ........ SKIPPED
[INFO] CUB Practice - UI apps ............................. SKIPPED
[INFO] CUB Practice - UI content .......................... SKIPPED
[INFO] CUB Practice - UI config ........................... SKIPPED
[INFO] CUB Practice - All ................................. SKIPPED
[INFO] CUB Practice - Integration Tests ................... SKIPPED
[INFO] CUB Practice - Dispatcher .......................... SKIPPED
[INFO] CUB Practice - UI Tests ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.977 s
[INFO] Finished at: 2024-12-02T16:14:18+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.0:npm (npm ci) on project cub.practice.ui.frontend: Failed to run task: 'npm ci' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :cub.practice.ui.frontend

 

I encountered this error when I wanted to package the project
I tried clearing the cache and also tried going directly to the UI Frontend folder and running the npm install command.

None of these methods work.

 

But npm provides other error messages.

 

PS C:\aem-test\cub.practice\ui.frontend> npm install
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: cub-practice@0.1.0
npm error Found: react@18.3.1
npm error node_modules/react
npm error react@"^18.2.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^16.14.0" from @Deleted Account/aem-core-components-react-base@1.1.8
npm error node_modules/@adobe/aem-core-components-react-base
npm error @Deleted Account/aem-core-components-react-base@"^1.1.8" from the root project

How can i fix it?

 

 

주제

토픽은 커뮤니티 콘텐츠를 분류하여 관련성 있는 콘텐츠를 찾는 데 도움이 됩니다.

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor

Hi @DerickChang 

 

This looks like a dependency tree issue. It means that while resolving cub-practice@0.1.0 it found react@"^18.2.0"

but it needed react@"^16.14.0". Try running your npm command with --force, or --legacy-peer-deps.

원본 게시물의 솔루션 보기

3 답변 개

Avatar

Community Advisor

Hi @DerickChang ,

 

Please re-check the node and npm versions installed in your system. This error has something to do with the installed version

 

Also check whether below versions match with your installed versions in POM.xml

 

PRATHYUSHA_VP_0-1733140064763.png

If the above doesn't work, try reinstalling the node and npm versions

 

Hope this helps!

Avatar

정확한 답변 작성자:
Community Advisor

Hi @DerickChang 

 

This looks like a dependency tree issue. It means that while resolving cub-practice@0.1.0 it found react@"^18.2.0"

but it needed react@"^16.14.0". Try running your npm command with --force, or --legacy-peer-deps.

Avatar

Administrator

@DerickChang Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni