Closed nfriedly closed 7 years ago
Actually, I'm not sure where that code is coming from. This might be a problem on my side...
I don't believe that code appears anywhere in this codebase.
Based on the stacktrace, it appears the error may be coming from:
C:\WORK\2017Q1\wdc-node-sdk\test\dependency-lint.js:4:3
Whats the content of that file? Also what version of dependency lint are you using?
my package.json requires:
"devDependencies": {
....
"dependency-lint": "^4.2.0",
the content of: C:\WORK\2017Q1\wdc-node-sdk\test\dependency-lint.js:4:3
:
'use strict';
const node_version = parseInt(process.versions.node, 10);
if (node_version >= 4) {
require('../node_modules/.bin/dependency-lint');
} else {
// eslint-disable-next-line no-console
console.log('skipping dependency lint for older versions of Node.js');
}
Yea, that file isn't necessary any more and, although I don't understand why, when I delete it and have the npm script just run dependency-lint
directly, it starts working correctly on windows. So I still don't understand the issue, but I don't think it's in this repo. Sorry for wasting your time with this.
Dependency Lint appears to run some bash scripts that don't work on windows, is this reasonably easy to resolve?
See https://github.com/watson-developer-cloud/node-sdk/pull/394#issuecomment-280238326 for context