How can I run natively ‘Big Commerce Stencil CLI’ on Apple Silicon M1 Chip

I am a front-end engineer who mostly works on a Bigcommerce platform. Bigcommerce uses a handlebar with the ‘stencil command line interface’ and it requires ‘node version manager’ (nvm).

I switched my Intel Macbook Pro with M1 Chip Macbook Pro then I …


This content originally appeared on DEV Community and was authored by Caglar

I am a front-end engineer who mostly works on a Bigcommerce platform. Bigcommerce uses a handlebar with the 'stencil command line interface' and it requires 'node version manager' (nvm).

I switched my Intel Macbook Pro with M1 Chip Macbook Pro then I couldn't realize this migration will be a little bit ticky.

I installed homebrew then node and nvm packages then I followed the steps on bigcommerce developer website.

However, almost every project gives different errors but all of them are related to the 'node' version. I've gotten few-hour research on Google but these were not about BigCommerce 'stencil-cli',

Jump to 'TL;DR'
Here is the perfect version of the NVM for your delicious Stencil Templates.

# For ARM based macs // for bash
arch -x86_64 /bin/zsh

# For ARM based macs // for Fish Shell
arch -x86_64 /usr/local/bin/fish

brew install node
brew install nvm

# which is LTS for v12
nvm install 12.13.0
nvm alias default 12.13.0
npm install -g @bigcommerce/stencil-cli

Then start your project with

stencil start -o

Current Version Of my NVM

Please check out our website to get more information about BigCommerce Development and Marketing.

Thanks for reading, Happy hacking ?


This content originally appeared on DEV Community and was authored by Caglar


Print Share Comment Cite Upload Translate Updates
APA

Caglar | Sciencx (2021-07-12T21:45:00+00:00) How can I run natively ‘Big Commerce Stencil CLI’ on Apple Silicon M1 Chip. Retrieved from https://www.scien.cx/2021/07/12/how-can-i-run-natively-big-commerce-stencil-cli-on-apple-silicon-m1-chip/

MLA
" » How can I run natively ‘Big Commerce Stencil CLI’ on Apple Silicon M1 Chip." Caglar | Sciencx - Monday July 12, 2021, https://www.scien.cx/2021/07/12/how-can-i-run-natively-big-commerce-stencil-cli-on-apple-silicon-m1-chip/
HARVARD
Caglar | Sciencx Monday July 12, 2021 » How can I run natively ‘Big Commerce Stencil CLI’ on Apple Silicon M1 Chip., viewed ,<https://www.scien.cx/2021/07/12/how-can-i-run-natively-big-commerce-stencil-cli-on-apple-silicon-m1-chip/>
VANCOUVER
Caglar | Sciencx - » How can I run natively ‘Big Commerce Stencil CLI’ on Apple Silicon M1 Chip. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/07/12/how-can-i-run-natively-big-commerce-stencil-cli-on-apple-silicon-m1-chip/
CHICAGO
" » How can I run natively ‘Big Commerce Stencil CLI’ on Apple Silicon M1 Chip." Caglar | Sciencx - Accessed . https://www.scien.cx/2021/07/12/how-can-i-run-natively-big-commerce-stencil-cli-on-apple-silicon-m1-chip/
IEEE
" » How can I run natively ‘Big Commerce Stencil CLI’ on Apple Silicon M1 Chip." Caglar | Sciencx [Online]. Available: https://www.scien.cx/2021/07/12/how-can-i-run-natively-big-commerce-stencil-cli-on-apple-silicon-m1-chip/. [Accessed: ]
rf:citation
» How can I run natively ‘Big Commerce Stencil CLI’ on Apple Silicon M1 Chip | Caglar | Sciencx | https://www.scien.cx/2021/07/12/how-can-i-run-natively-big-commerce-stencil-cli-on-apple-silicon-m1-chip/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.