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'
  • It would be great if you can post the whole command line errors. Commented Jan 15, 2019 at 9:45
  • 1
    @ramesh please check my ans. Commented Jan 21, 2019 at 12:13

2 Answers 2


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

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

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 you have read our privacy policy.

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