1

我试图安装 Node.js、Grunt 和 Harp,所以我下载了 Node.js,然后我在终端中写了这个(注意:我也有 Homebrew): node -v

npm update -g npm
npm install -g grunt-cli

之后我安装了 Bootstrap 文件并写了(总是从终端)我写了:

npm install

终端返回了这个:

[bash-3.2# npm install
npm WARN saveError ENOENT: no such file or directory, open '/Users/Bimbi/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/Bimbi/package.json'
npm WARN Bimbi No description
npm WARN Bimbi No repository field.
npm WARN Bimbi No README data
npm WARN Bimbi No license field.

up to date in 0.05s

之后,我运行这些命令来更新 Ruby,安装 bundler 和一些依赖项:

\curl -sSL https://get.rvm.io | bash -s stable
rvm list known
rvm install ruby-2.4.2
ruby -v
rvm use ruby-2.4.2 —default
gem install bundler
bundler -v
gem init
bundle install
gem install Jekyll bundler

然后我尝试安装竖琴:

sudo npm install -g harp

终端返回了这个:

npm WARN deprecated connect@2.30.2: connect 2.x series is deprecated
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
/usr/local/bin/harp -> /usr/local/lib/node_modules/harp/bin/harp
+ harp@0.25.0
updated 1 package in 9.639s

收到此消息后,我跑了:

harp -V

控制台返回:

4

0 回答 0