Bigcommerce模板启动错误

问题描述 投票:0回答:1

我最近在我的本地机器上安装了模板,并完成了模板初始化过程。但是,当我运行模板启动时,我收到以下错误:

    { [Error: ../../node_modules/@bigcommerce/citadel/dist/tools/toolkit.scss doesn't exist!]

格式化:'错误:../../node_modules/@bigcommerce/citadel/dist/tools/toolkit.scss不存在!\ n在stdin的第13行\ n >> @import“../ .. / node_modules / @的Bigcommerce /城堡/距离/工具/工具包“; // 1 \ n -------- ^ \ n',消息:'../../node_modules/@bigcommerce/citadel/dist/tools/toolkit.scss不存在!',列:9,行:13,文件:'stdin',状态:1} {[错误:../../ node_modules / @ bigcommerce / citadel / dist / tools / tools.scss不存在!]格式化:'错误:../../ node_modules / @ bigcommerce / citadel / dist / tools / totokit.scss不存在!\ n在stdin的第13行\ n >> @import“../../node_modules/ @的Bigcommerce /城堡/距离/工具/工具包“; // 1 \ n -------- ^ \ n',消息:'../../node_modules/@bigcommerce/citadel/dist/tools/toolkit.scss不存在!',列:9,行:13,文件:'stdin',状态:1}

我知道去年曾问过这个问题,但是按照提供的答案并进行新的模板安装并不适合我。 bigcommerce的cli似乎存在问题,因为它试图导入的许多css文件都没有找到。有没有人解决这个问题并找到了解决方案?

bigcommerce
1个回答
0
投票

首先我会删除你的模板配置并重新运行:

stencil init

如果这不起作用,请尝试移动到包含模板文件的根文件夹并运行:

npm install

这将做的是安装任何可能尚未安装的npm软件包。这可能是Stencil CLI无法找到它们的原因。

© www.soinside.com 2019 - 2024. All rights reserved.