Ich überlege, das MERN-Framework für ein neues Projekt zu verwenden und bisher bin ich nicht von dem, was ich sehe, ermutigt. Ich habe die Anweisungen befolgt für das Projekt über mern-cli
Einrichtung und das Projekt erstellt wird, erhalten und läuft richtig, aber wenn ich ausführen ...Probleme beim Ausführen von MERN-Tests
npm run test
ich ...
> [email protected] test /Users/acooley/workspace/node_datacenter
> cross-env NODE_ENV=test PORT=8080 MONGO_URL=mongodb://localhost:27017/mern-test node_modules/.bin/nyc node --harmony-proxies node_modules/.bin/ava
/usr/local/Cellar/node/7.1.0/bin/node: bad option: --harmony-proxies
----------|----------|----------|----------|----------|----------------| File | % Stmts | % Branch | % Funcs | % Lines |Uncovered Lines |
----------|----------|----------|----------|----------|----------------|
----------|----------|----------|----------|----------|----------------| All files | 100 | 100 | 100 | 100 | |
----------|----------|----------|----------|----------|----------------|
npm ERR! Darwin 16.1.0 npm ERR! argv "/usr/local/Cellar/node/7.1.0/bin/node" "/usr/local/bin/npm" "run" "test" npm ERR! node v7.1.0 npm ERR! npm v3.10.9 npm ERR! code ELIFECYCLE npm ERR! [email protected] test: `cross-env NODE_ENV=test PORT=8080 MONGO_URL=mongodb://localhost:27017/mern-test node_modules/.bin/nyc node --harmony-proxies node_modules/.bin/ava` npm ERR! Exit status 9 npm ERR! npm ERR! Failed at the [email protected] test script 'cross-env NODE_ENV=test PORT=8080 MONGO_URL=mongodb://localhost:27017/mern-test node_modules/.bin/nyc node --harmony-proxies node_modules/.bin/ava'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the mern-starter package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! cross-env NODE_ENV=test PORT=8080 MONGO_URL=mongodb://localhost:27017/mern-test node_modules/.bin/nyc node --harmony-proxies node_modules/.bin/ava npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs mern-starter npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls mern-starter npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /Users/acooley/workspace/node_datacenter/npm-debug.log
Ist jemand anderes dazu gekommen? Ich möchte wirklich diesen Rahmen verwenden, aber nicht mit funktionierenden TDD ist ein Show-Stopper.