在Ubuntu上启动Smashing
概述
在Ubuntu上启动Smashing作为Dashing的继任者时,我在解决各种错误的过程中进行了操作。这是记录。
环境
-
- Ubuntu22.04
-
- ruby 3.0.2
- Smashing 1.3.6
安装的大致步骤
-
- Ubuntu安装
-
- 安装Ruby
-
- 安装OpenSSL
-
- 安装NodeJS
- 安装Smashing
基本上安装步骤已在下面的官方网页上写明。
安装 Ruby
sudo apt-get install ruby-full
安装OpenSSL
apt install build-essential libssl-dev
安装NodeJS
由于需要JavaScript Runtime,因此需要进行安装。
虽然官方页面的步骤中没有提到,但在问题报告中提到了。
apt-get install nodejs
安装Smashing
# Install bundler
gem install bundler
# Install smashing
gem install smashing
# Create a new project
smashing new my-project
# Change Directory into the project
cd my-project
# Install the bundle of project specific gems
bundle
# Start the example dashboard!
smashing start
以上就是。