npm error ELIFECYCLE while running the test
问题 I am using mocha-phantomjs setup for unit testing. I have following package.json scriot to run the tests. "scripts": { "test": "npm run testFlickr", "testFlickr": "mocha-phantomjs ./test/FlickrTest.html" } This run ok in browser. And when I run the command npm test in cmd, the test run alright but it also gives following error 3 passing (5s) 6 failing npm ERR! flickr-test@ testFlickr: `mocha-phantomjs ./test/FlickrTest.html` npm ERR! Exit status 6 npm ERR! npm ERR! Failed at the flickr-test@