Repository Modernizer error | Community
Skip to main content
Level 2
Dec 24, 2020 6:03 AM UTC
Solved

Repository Modernizer error

Hi Team,

 

I am running Repository Modernizer as referred here: https://github.com/adobe/aem-cloud-service-source-migration/tree/master/packages/repository-modernizer

 

My source maven project is of archetype 19 and getting below error:

********** Executing Repository Modernizer ********** Restructuring Repository.. node_modules\@adobe\aem-cs-source-migration-repository-modernizerbasePath Error: ENOENT: no such file or directory, stat 'node_modules\@adobe\aem-cs-source-migration-repository-modernizer\resources\all' Code: ENOENT


Has anyone came across this error?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
davidjgonzalezzzzAccepted solution
Employee
Feb 6, 2021 9:06 PM UTC

Try version 0.0.8+ of the repo modernizer plugin.

 

The prior version exhibited this symptom, and the way to work around it was to perform a non-global install of @61380\aem-cs-source-migration-repository-modernizer in the same folder in which you're running the aio plugin from.

 

Ex.

$ cd project-to-modernize

$ npm i @61380\aem-cs-source-migration-repository-modernizer

 

But that said, that was fixed in v0.0.8 so just upgrade to the latest version and you should be set.

6 replies

davidjgonzalezzzzAccepted solution
Employee
Feb 6, 2021 9:06 PM UTC

Try version 0.0.8+ of the repo modernizer plugin.

 

The prior version exhibited this symptom, and the way to work around it was to perform a non-global install of @61380\aem-cs-source-migration-repository-modernizer in the same folder in which you're running the aio plugin from.

 

Ex.

$ cd project-to-modernize

$ npm i @61380\aem-cs-source-migration-repository-modernizer

 

But that said, that was fixed in v0.0.8 so just upgrade to the latest version and you should be set.

Translate
sravs508Author
Level 2
Jan 6, 2021 9:21 AM UTC

Yes, instead of running the unified tool, i followed these steps mentioned here: https://github.com/adobe/aem-cloud-service-source-migration/tree/master/packages/repository-modernizer

Translate
New Participant
Jan 6, 2021 8:15 AM UTC

I am getting the same issue. Are you able to find the solution to this?

Translate
shelly-goel
Employee
Dec 24, 2020 9:51 PM UTC

@sravs508 

Try running npm update and also check config.yaml is well formed.

If this doesn't help, you could try re-installing node and npm.

Translate
Level 3
Dec 24, 2020 8:28 AM UTC

As this is a node JS error which means File does not exists.

Can you check once if in below path all folder exists or not, all folder contains one pom.xml and src folder.

'node_modules\@adobe\aem-cs-source-migration-repository-modernizer\resources\all'

 

Regards

Praveen

Translate
sravs508Author
Level 2
Dec 24, 2020 9:07 AM UTC
i do have the path
Translate