Working with grunt errors on .NET Core Projects

Grunt is a task-based command line build tool for JavaScript projects.Here’s the idea: when working on a JavaScript project, there are a bunch of things you’ll want to do regularly. Like concatenating given files, running JSHint on your code, running tests, or minifying your scripts etc.

In this post i am gonna show you how to eliminate the grunt error for .NET Core project.

Below is the error that i found upon compilation!

Error- “No executable found matching command grunt”

1

Solution: Open the package manager console and install “npm install -g grunt-cli” packages.

This installs Grunt’s command line interface (CLI) globally.This will put the grunt command in your system path, allowing it to be run from any directory.

Note that installing grunt-cli does not install the Grunt task runner. The job of the Grunt CLI is simple: run the version of Grunt which has been installed next to a Gruntfile. This allows multiple versions of Grunt to be installed on the same machine simultaneously.

Upon installing you should see something like this-

2

Clean the solution and rebuild it and voila!

3

Thanks,
Srivatsa

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a free website or blog at WordPress.com.

Up ↑

%d bloggers like this: