Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Vows: command not found

Vows: command not found

Problem

I ran my tests from the root folder of my app. The tests lay within the spec directory.

$ vows  

No command 'vows' found, did you mean:
  Command 'vos' from package 'openafs-client' (universe)
  Command 'voms' from package 'voms-server' (universe)
vows: command not found

My package.json is as follows

{
  "author": "Sunil Kumar ",
  "name": "subscription-engine-processor",
  "description": "Node.js server for Subscription Engine processor application.",
  "version": "0.0.0",
  "scripts": {
    "start": "node index.js"
  },
  "repository": {
    "type": "git",
    "url": ""
  },
  "main": "./index",
  "engines": {
    "node": "~0.6.6"
  },
  "dependencies": {
    "buffers": "0.1.1",
    "redis": "0.7.1"
  },
  "devDependencies": {
    "vows": "0.6.x"
  }
}

I have done npm install so that the dependency modules including Vows have been installed and are present in my node_modules/ directory.

Could any one please help me out as to what might be the issue?

Problem courtesy of: Sunil

Solution

The binary is not installed. You need to execute

npm install vows -g  

NOTE: requires root privilege

the -g means to install it globally.

EDIT:
try

sudo npm config set dev true 

before installation.

Solution courtesy of: qiao

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

Vows: command not found

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×