I have some questions according to the installation of Vue-storefront on my local.
I am using Mac OS 10.13.4 and node version 8.11.5, npm version 5.6
But while building storefront npm, it returns an error.
[Error: Can't build storefront npm. │
│ at Promise (/Volumes/Works/web/vue/vuestorefront/vue-storefront/core/scripts/installer.js:412:16) │
│ at new Promise (<anonymous>) │
│ at Storefront.npmBuild (/Volumes/Works/web/vue/vuestorefront/vue-storefront/core/scripts/installer.js:408:12) │
│ at <anonymous> │
│ │
│ Please check log file for details: /Volumes/Works/web/vue/vuestorefront/vue-storefront/var/log/install.log][1]
Why this happens?
2
Answers
As in
https://docs.vuestorefront.io/guide/basics/recipes.html#how-to-prevent-an-error-can%E2%80%99t-build-storefront-npm
This is probably because of the yarn.lock file which locks certain version of dependencies. Try these steps:
yarn
(so the dependencies are downloaded again – you will see a lot of
warnings which is not bad, although your project will not be future
proof)
yarn installer
again