我正在尝试安装Node.js,Grunt和Harp,所以我下载了Node.js然后我在终端中写了这个(注意:我也有Homebrew): 节点-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
控制台返回: