Getting grunt.js to work on a pre-existing yeoman project

I have a working yeoman project, which I run the server with grunt server, it works fine.

I put the entire thing into a git repo, and checked it out to a new folder…

  • Switch the svn branch git dcommits to
  • Is it safe to use the same ignores file for Git, Mercurial, and Bazaar?
  • How to get rid of Git submodules untracked status?
  • git add . vs git commit -a
  • git push using PuTTY on Windows fails (fatal: The remote end hung up unexpectedly)
  • Find long SHA from short SHA for git diff
  • when I try doing ‘grunt server’ it says:

    Fatal error: Unable to find local grunt.

    If you’re seeing this message, either a Gruntfile wasn’t found or grunt
    hasn’t been installed locally to your project.

    I am having trouble getting grunt installed locally to that directory, and being able to locate and use the GruntFile.

  • npm install command doing nothing
  • “Updates were rejected because the tag already exists” when attempting to push in SourceTree
  • Git: commit partial changes
  • How can I ignore a directory when doing a Git bisect?
  • How print last commit info for every file in a git repository
  • How to get Git to clone into current directory
  • 3 Solutions collect form web for “Getting grunt.js to work on a pre-existing yeoman project”

    After you check out a Yeoman project, you need to install the npm modules and bower components like you did after the initial scaffolding process, as they are not part of the git repository:

    npm install & bower install

    I just ran into this today!

    By default your .gitignore will be ignoring /bower_components, node_modules, dist folder, etc.

    When you pull the project from git, just be sure to run npm install, and bower install, and you should be good to go after that!

    You will need to install some packages. The gruntserver output (installed as Scott’s answer) will tell you what are the missing ones

    Git Baby is a git and github fan, let's start git clone.