I'm new to nodejs, working on Webstorm 9.0.1, i'm trying to use Lab module for tests using this tutorial http://ift.tt/1o2pauV
My package.json file contains the following :
{ "name": "test", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "./node_modules/lab/bin/lab -c" }, "author": "", "license": "ISC", "devDependencies": { "hapi": "^8.0.0", "joi": "^5.0.2", "lab": "^5.1.0" } }
The local node_modules directory is created in the directory C:\Users\DT002\WebstormProjects\hapiB\test>
the problem is that when i try to test, i got the following error :
C:\Users\DT002\WebstormProjects\hapiB\test>npm test
test@1.0.0 test C:\Users\DT002\WebstormProjects\hapiB\test ./node_modules/lab/bin/lab -c
'.' is not recognized as an internal or external command, operable program or batch file. npm ERR! Test failed. See above for more details. npm ERR! not ok code 0
Thank you for any suggestions.
Aucun commentaire:
Enregistrer un commentaire