Skip to content

Instantly share code, notes, and snippets.

@caovillanueva
Last active February 27, 2023 19:25
Show Gist options
  • Save caovillanueva/650d2c952823e59574f5644885e157a4 to your computer and use it in GitHub Desktop.
Save caovillanueva/650d2c952823e59574f5644885e157a4 to your computer and use it in GitHub Desktop.
[BC run stencil on localhost] Step by step how to do it. #Bigcommerce
More info to install:
https://developer.bigcommerce.com/stencil-docs/ZG9jOjIyMDcwMA-installing-stencil-cli
IF get error "Error: Cannot find module 'node-sass'" follow the next steps:
Just before removing your node_modules or clean your cache, which cost you time, try running
npm rebuild node-sass --force
in your project folder. Like mine, chance is high that your problem gets solved. In case it was not successful try the followings:
npm cache clean --force
rm -rf node_modules
npm install
npm rebuild node-sass
paste folder "node-sass" here:
C:\Users\Cao\AppData\Roaming\npm\node_modules\@bigcommerce\stencil-cli\node_modules\@bigcommerce\stencil-styles\node_modules
Go to www folder and select the project via PowerShield and use:
stencil init
stencil start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment