Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
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

Avatar

Level 4

Hi All ,

 

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

 

 

sonuk85184451_0-1674491264127.png

 

sonuk85184451_1-1674491341685.png

 

build log below from the pipeline

sonuk85184451_2-1674491546183.png

 

 

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 ?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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-...

 

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

 

Hope this helps!

 

Regards,
Nitesh

 

View solution in original post

5 Replies

Avatar

Correct answer by
Employee Advisor

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-...

 

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

 

Hope this helps!

 

Regards,
Nitesh

 

Avatar

Level 4

Thanks for responding @nitesh_kumar  ,  i tried its working fine

 

also one query - i already have a pipeline for 

 

sonuk85184451_0-1674552267770.png

 

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 ?

 

sonuk85184451_2-1674552449907.png

 

 

sonuk85184451_1-1674552390220.png

 

Avatar

Employee Advisor

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-... 

 

Regards,

Nitesh

Avatar

Level 4

Thanks @nitesh_kumar - one last query regarding , so i have two projects needs to be deployed in AEM cloud instance  

 

but each time when i deploy either of the project , app folder is getting over written 

 

for example - when i deploy pipeline for demosite then /apps/demosite folder overwriting /apps/wknd folder

 

similarly when i deploy pipeline for wknd project then /apps/wknd folder overwriting /apps/demosite folder

 

i need both apps folder to be there both project are in different GIT repo also different adobe GIT repo