Vue-storefront安装错误。无法构建店面 npm

mch*_*ech 5 magento storefront vue.js vue-storefront

根据本地 Vue-storefront 的安装,我有一些疑问。\n我使用的是 Mac OS 10.13.4 和节点版本 8.11.5,npm 版本 5.6\n但是在构建 storefront npm 时,它返回一个错误。

\n\n
 [Error: Can't build storefront npm.                                                                                \xe2\x94\x82\n\xe2\x94\x82     at Promise (/Volumes/Works/web/vue/vuestorefront/vue-storefront/core/scripts/installer.js:412:16)             \xe2\x94\x82\n\xe2\x94\x82     at new Promise (<anonymous>)                                                                                  \xe2\x94\x82\n\xe2\x94\x82     at Storefront.npmBuild (/Volumes/Works/web/vue/vuestorefront/vue-storefront/core/scripts/installer.js:408:12) \xe2\x94\x82\n\xe2\x94\x82     at <anonymous>                                                                                                \xe2\x94\x82\n\xe2\x94\x82                                                                                                                   \xe2\x94\x82\n\xe2\x94\x82 Please check log file for details: /Volumes/Works/web/vue/vuestorefront/vue-storefront/var/log/install.log][1]        \n
Run Code Online (Sandbox Code Playgroud)\n\n

为什么会出现这种情况?

\n

小智 2

https://docs.vuestorefront.io/guide/basics/recipes.html#how-to-prevent-an-error-can%E2%80%99t-build-storefront-npm中所示

出现错误“Can't build storefront npm”是因为 npm 无法自动安装所需的模块。为了防止出现此错误,您应该在运行安装程序之前手动安装这些模块。这很容易:

git clone https://github.com/DivanteLtd/vue-storefront.git vue-storefront && cd vue-storefront
npm install
npm install vue-carousel vue-no-ssr
npm run build # check if no errors
npm run installer
Run Code Online (Sandbox Code Playgroud)