AEM SPA project maven build failing - Failed to run task: npm test
Hi All,
I am trying to create AEM SPA with React following this tutorial https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/spa-editor/react/create-project.html?lang=en. The project created using maven archetype 39, unable to build, fails during "npm run test" execution with message Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.0:npm (npm run test) on project aem-guides-wknd-spa.react.ui.frontend: Failed to run task: 'npm test. Also below is the type error
TypeError: Cannot read property 'match' of undefined
[INFO] at interpolate (C:\spa\aem-guides-wknd-spa.react\ui.frontend\node_modules\dotenv-expand\lib\main.js:8:28)
[INFO] at dotenvExpand (C:\spa\aem-guides-wknd-spa.react\ui.frontend\node_modules\dotenv-expand\lib\main.js:36:32)
[INFO] at dotenvFiles.forEach.dotenvFile (C:\spa\aem-guides-wknd-spa.react\ui.frontend\node_modules\react-scripts\config\env.js:43:29)
Can anyone help me on how to resolve this issue?
I just updated node and npm versions in /ui.frontend/pom.xml as install node and npm execution was failing.