简体   繁体   中英

Bigcommerce Stencil Start Error

I recently installed stencil on my local machine, and went through the stencil init process. However when I run stencil start I am getting the following error:

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

formatted: 'Error: ../../node_modules/@bigcommerce/citadel/dist/tools/toolkit.scss doesn\\'t exist!\\n on line 13 of stdin\\n>> @import "../../node_modules/@bigcommerce/citadel/dist/tools/toolkit"; // 1\\n --------^\\n', message: '../../node_modules/@bigcommerce/citadel/dist/tools/toolkit.scss doesn\\'t exist!', column: 9, line: 13, file: 'stdin', status: 1 } { [Error: ../../node_modules/@bigcommerce/citadel/dist/tools/toolkit.scss doesn't exist!] formatted: 'Error: ../../node_modules/@bigcommerce/citadel/dist/tools/toolkit.scss doesn\\'t exist!\\n on line 13 of stdin\\n>> @import "../../node_modules/@bigcommerce/citadel/dist/tools/toolkit"; // 1\\n --------^\\n', message: '../../node_modules/@bigcommerce/citadel/dist/tools/toolkit.scss doesn\\'t exist!', column: 9, line: 13, file: 'stdin', status: 1 }

I know this question was asked previously last year, but going with the provided answer and doing a fresh stencil install isn't working for me. There seems to be a problem with bigcommerce's cli as many of the css files it is trying to import are not being found. Has anyone worked through this problem and found a solution?

First off I would delete your stencil configuration and re-run:

stencil init

If that doesn't work try to move to the root folder that holds your stencil files and run:

npm install

What this will do is install any npm packages that may not have been installed. It could be why the Stencil CLI can't find them.

您是否尝试重新安装最新版本的 Nodejs?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM