Domanda

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'
È stato utile?

Soluzione

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

Altri suggerimenti

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange
scroll top