我從我的應用程序的根文件夾運行了我的測試。測試位於spec目錄中。Vows:command not found
$ 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安裝,這樣的依賴模塊,包括誓言已安裝並出現在我的node_modules /目錄。
任何人都可以幫我解決什麼問題?
試圖在全球範圍安裝 須藤NPM安裝-g NPM HTTP GET的https:/ /registry.npmjs.org/redis/0.7.1 npm http GET https://registry.npmjs.org/buffers/0.1.1 npm http 304 https://registry.npmjs.org/redis/0.7.1 npm http 304 https://registry.npmjs.org/buffers/0.1.1 subscription- [email protected]/usr/local/lib/node_modules/subscription-engine-processor ├──[email protected] └──[email protected] 的依賴已安裝但不發展特定的,即誓言。 – Sunil 2012-01-04 08:30:19
安裝前嘗試'sudo npm config set dev true'。 – qiao 2012-01-04 08:38:05
是否有任何具體的運行此以包含全局模塊? npm開始抱怨關於未安裝的模塊。你能否也請告訴我們這些模塊安裝在哪裏? – Sunil 2012-01-04 09:04:42