error while running the pipeline in Adobe cloud Manager - npm ERR! audit No package.json found: Cannot audit a project without a package.json | Community
Skip to main content
Level 4
January 23, 2023
Solved

error while running the pipeline in Adobe cloud Manager - npm ERR! audit No package.json found: Cannot audit a project without a package.json

  • January 23, 2023
  • 1 reply
  • 2835 views

Hi All ,

 

I am getting error while running the pipeline in Adobe cloud Manager

 

 

 

 

build log below from the pipeline

 

 

Switched to a new branch 'dev'
Branch 'dev' set up to track remote branch 'dev' from 'origin'.


[BUILD] Running git change-log command(s)
[BUILD] Running npm audit command(s)
Executing command npm --progress false audit --production --audit-level=critical
npm ERR! code EAUDITNOPJSON
npm ERR! audit No package.json found: Cannot audit a project without a package.json

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-01-23T16_22_54_070Z-debug.log

 

package.json is present in project still i am getting this error

 

what can be issue here ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by nitesh_kumar-1

Hi @sonuk85184451 ,

 

I see two possible reasons here

  • You are trying to build the full stack codebase on the FE pipeline.
  • The path you have specified on the pipeline for FE code isn't correct, the source root must have package.json

 

Check this for more information about the FE pipeline

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/using-cloud-manager/cicd-pipelines/introduction-ci-cd-pipelines.html?lang=en#full-stack-pipeline

 

Example for Fullstack to FE pipeline project
https://main--about--lamontacrook.hlx.live/ 

 

Hope this helps!

 

Regards,
Nitesh

 

1 reply

nitesh_kumar-1
Adobe Employee
nitesh_kumar-1Adobe EmployeeAccepted solution
Adobe Employee
January 23, 2023

Hi @sonuk85184451 ,

 

I see two possible reasons here

  • You are trying to build the full stack codebase on the FE pipeline.
  • The path you have specified on the pipeline for FE code isn't correct, the source root must have package.json

 

Check this for more information about the FE pipeline

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/using-cloud-manager/cicd-pipelines/introduction-ci-cd-pipelines.html?lang=en#full-stack-pipeline

 

Example for Fullstack to FE pipeline project
https://main--about--lamontacrook.hlx.live/ 

 

Hope this helps!

 

Regards,
Nitesh

 

Level 4
January 24, 2023

Thanks for responding @nitesh_kumar-1  ,  i tried its working fine

 

also one query - i already have a pipeline for 

 

 

which is working fine 

when i am trying add one more pipeline for  , Full stack Code is disabled . so can i have only one pipeline at a time ?

 

 

 

 

nitesh_kumar-1
Adobe Employee
Adobe Employee
January 24, 2023

Hi @sonuk85184451 ,

 

I'm glad that it's working.

 

Yes, At any time, there can only be one full-stack pipeline per environment.

 

For more details please refer to this documentation.

 

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/using-cloud-manager/cicd-pipelines/introduction-ci-cd-pipelines.html?lang=en#full-stack-pipeline 

 

Regards,

Nitesh