Closed jwhitmarsh closed 7 years ago
It seems you've done npm install -g xclap
.
You should only install xclap locally.
To get the clap
command globally, install the xclap-cli
package.
npm install -g xclap-cli
Ah apologies. Thanks very much.
i did this npm install -g xclap-cli and did not install xclap locally and i still see the same error when i run clap build [15:26:44] Loaded CWD/xclap.js [15:26:44] No tasks found - please load some.
Usage: clap [options] [--] [task1 [task options] task2 [task options] ...] Help: clap -h Example: clap build
I even have tasks in xclap.js and it was working a while ago and now suddenly this is throwing me these errors. Also tried git clean -fxd and npm i but still same
I've created an
xclap.js
with the contents:And this is the output: