workshopper / learnyounode

Learn You The Node.js For Much Win! An intro to Node.js via a set of self-guided workshops.
Other
7.25k stars 1.84k forks source link

:bug: fixes error in windows when execute npm run test #578

Open shangyilim opened 7 years ago

shangyilim commented 7 years ago

this fixes an issue where npm run test will cause an error in windows machine.

PS C:\Projects\learnyounode> npm run test

> learnyounode@3.5.10 test C:\Projects\learnyounode
> npm run lint && ./node_modules/.bin/workshopper-adventure-test

npm WARN invalid config loglevel="notice"

> learnyounode@3.5.10 lint C:\Projects\learnyounode
> standard

'.' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! learnyounode@3.5.10 test: `npm run lint && ./node_modules/.bin/workshopper-adventure-test`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the learnyounode@3.5.10 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\chris\AppData\Roaming\npm-cache\_logs\2017-10-05T12_40_20_145Z-debug.log