我从应用程序的根文件夹运行测试。测试位于spec目录中。
$ 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
我的package.json如下
{
"author": "Sunil Kumar <[email protected]>",
"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"
}
}
我已经完成npm install,以便包括誓言的依赖模块已安装并存在于我的node_modules /目录中。
请问有人可能会帮助我吗?
最佳答案
二进制文件未安装。您需要执行
npm install vows -g
注意:需要root权限
-g
表示要全局安装。编辑:
尝试
sudo npm config set dev true
在安装之前。
关于node.js - 誓言:找不到命令,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/8723234/