Title: installation error in shopware-pwa initialization
Tags: progressive-web-apps;shopware
Question: I am trying to install shopware-pwa. I am following the steps in https://github.com/vuestorefront/shopware-pwa
But at the first step while initializing the project npx @shopware-pwa/cli init
While installing I used default option:
* Shopware instance address: · https://shopware6-demo.vuestorefront.io
* Shopware instance access token: · SWSCVJJET0RQAXFNBMTDZTV1OQ
* Which version you'd like to use: latest stable (recommended)
Error: Command failed: npx --ignore-existing lopeztimothy@example.org --answers &quot;{\&quot;name\&quot;:\&quot;shopware-pwa-project\&quot;,\&quot;description\&quot;:\&quot;shopware-pwa-project description\&quot;,\&quot;author\&quot;:\&quot;Vue Storefront\&quot;,\&quot;pm\&quot;:\&quot;yarn\&quot;,\&quot;ui\&quot;:\&quot;none\&quot;,\&quot;language\&quot;:\&quot;js\&quot;,\&quot;server\&quot;:\&quot;none\&quot;,\&quot;features\&quot;:[\&quot;axios\&quot;,\&quot;pwa\&quot;],\&quot;linter\&quot;:[\&quot;prettier\&quot;,\&quot;lintStaged\&quot;],\&quot;test\&quot;:\&quot;jest\&quot;,\&quot;mode\&quot;:\&quot;universal\&quot;,\&quot;target\&quot;:\&quot;server\&quot;,\&quot;devTools\&quot;:[],\&quot;gitUsername\&quot;:\&quot;\&quot;,\&quot;ci\&quot;:\&quot;none\&quot;}&quot;
npx: the --ignore-existing argument has been removed.
See `npm help exec` for more information
Trace: Error: Answers JSON could not be parsed (Unexpected token n in JSON at position 1)
at SAO.runGenerator (/home/user/.npm/_npx/059d932392171cf4/node_modules/sao/lib/index.js:126:15)
at SAO.run (/home/user/.npm/_npx/059d932392171cf4/node_modules/sao/lib/index.js:101:16)
at /home/user/.npm/_npx/059d932392171cf4/node_modules/create-nuxt-app/lib/cli.js:51:17
Does anybody come up with the issue?


Here is another answer: I found issue #612 in the create-nuxt-app GitHub repository.
It seems that after the --answers argument you'd have to start with a sinqle quote (') and then paste your configuration as a JSON. The JSON must not contain any linefeeds/carriage returns and there must not be any whitespaces ( ) between the properties.
So in your case your bash command should look like this:
npx --ignore-existing lopeztimothy@example.org --answers '{&quot;name&quot;:&quot;shopware-pwa-project&quot;,&quot;description&quot;:&quot;shopware-pwa-project description&quot;,&quot;author&quot;:&quot;Vue Storefront&quot;,&quot;pm&quot;:&quot;yarn&quot;,&quot;ui&quot;:&quot;none&quot;,&quot;language&quot;:&quot;js&quot;,&quot;server&quot;:&quot;none&quot;,&quot;features&quot;:[&quot;axios&quot;,&quot;pwa&quot;],&quot;linter&quot;:[&quot;prettier&quot;,&quot;lintStaged&quot;],&quot;test&quot;:&quot;jest&quot;,&quot;mode&quot;:&quot;universal&quot;,&quot;target&quot;:&quot;server&quot;,&quot;devTools&quot;:[],&quot;gitUsername&quot;:&quot;&quot;,&quot;ci&quot;:&quot;none&quot;}'
I've tried it on my machine just now and it worked. I only got a warning becausethe --ignore-existing argument has been removed.
hope that this solves your problem!
greetings

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2021:00:01/14/21', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<progressive-web-apps><shopware>', 'Title': 'installation error in shopware-pwa initialization', 'ViewCount': 198, 'id': 65716379, 'user_AboutMe': '', 'user_AccountId': 6970267.0, 'user_DisplayName': 'S S', 'user_Reputation': 1333.0, 'user_Views': 178.0, 'user_id': 5346880.0}}