0

ここにあるバックボーン ボイラープレート プロジェクトを構築しようとしています: https://github.com/backbone-boilerplate/backbone-boilerplate

私はそれを正しく構築するためにいくつかの問題を抱えています。backbone-boilerplate wiki の手順である、私が行った手順は次のとおりです。

git clone https://github.com/backbone-boilerplate/backbone-boilerplate.git
cd backbone-boilerplate
sudo npm install -gq bower
sudo npm install -q
sudo npm install -gq grunt-cli
sudo grunt

この時点で、次のようになります。

>> Local Npm module "grunt-cli" not found. Is it installed?
Warning: Task "requirejs" not found. Use --force to continue.

Aborted due to warnings.

これを適切に構築する方法はありますか?

4

3 に答える 3

0

ノードの依存関係だけでなく、bower を使用して依存関係を構築する必要があります。

入門

# Using Git, fetch only the latest commits.  You won't need the full history
# for your project.
git clone --depth 1 https://github.com/backbone-boilerplate/backbone-boilerplate

# Move the repository to your own project name.
mv backbone-boilerplate my-project

依存関係の更新

# Install global dependencies.  Depending on your user account you may need to
# gain elevated privileges using something like `sudo`.
npm install -g grunt-cli bower

# Optionally install coveralls (integration is baked in with Travis CI).
npm install -g coveralls

# Install NPM dependencies.
npm install

# Install Bower dependencies. ** THIS IS THE ONE YOU'VE MISSED **
bower install

ビルドプロセス

# To run the build process, run the default Grunt task.
grunt

# Run a build and test the now optimized assets.
grunt default server:release

ノードが正しくインストールされている場合、これは魅力的に機能するはずです。

于 2014-04-26T05:52:16.423 に答える
0

深さを指定するとうまくいくようです:

$ git clone --depth 1 https://github.com/backbone-boilerplate/backbone-boilerplate.git
$ npm install
$ grunt

また、初めてインストールする場合は、端末を再起動することをお勧めしますgrunt-cli

于 2013-09-29T08:56:55.607 に答える