3

I followed the official documentation from this url https://magento.github.io/pwa-studio/venia-pwa-concept/setup/

But when I run npm run build I get the following error

lerna ERR! npm run build -s exited 1 in '@magento/venia-concept'
2
  • It would be great if you can post the whole command line errors. Jan 15, 2019 at 9:45
  • 1
    @ramesh please check my ans. Jan 21, 2019 at 12:13

2 Answers 2

5

If error like this : lerna ERR! npm run build -s exited 1 in '@magento/venia-concept', then run following commands

 sudo npm restart
 sudo npm run stage:venia
 sudo npm cache clean -f
 sudo npm install -g n
 sudo n stable / sudo n latest (depends on version)

 sudo npm i @magento/pwa-buildpack
 sudo npm i @magento/upward-js
 sudo npm i @magento/venia-concept

then after run sudo npm run build command

3
  • Thanks a lot, it works now but I can't use other backends url, only can use the default backend URL
    – Ramesh KR
    Jan 22, 2019 at 5:01
  • 1
    I'm working on same thing, I will let you know when I got solution. Jan 22, 2019 at 5:07
  • thanks a lot. I will be waiting for your solution
    – Ramesh KR
    Jan 22, 2019 at 5:10
1

Since PWA studio is not released yet, I would recommend to join the slack channel to be up to date on current development and / or issues.

You find the link to join in the documentation at magento.github.io/pwa-studio

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.