Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'slice' of undefined #35

Open
datatypevoid opened this issue Feb 24, 2019 · 0 comments
Open

TypeError: Cannot read property 'slice' of undefined #35

datatypevoid opened this issue Feb 24, 2019 · 0 comments

Comments

@datatypevoid
Copy link
Contributor

After cloning the master branch and attempting to run the tests I receive the output:

/home/user/Projects/js_bintrees/node_modules/jshint/lib/cli.js:92
        targets = typeof targets === "string" ? null : targets.slice(1);
                                                               ^

TypeError: Cannot read property 'slice' of undefined
    at Object.interpret (/home/user/Projects/js_bintrees/node_modules/jshint/lib/cli.js:92:64)
    at Object.<anonymous> (/home/user/Projects/js_bintrees/node_modules/jshint/bin/hint:2:25)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bintrees@1.0.2 test: `nodeunit ./test/test_*.js && jshint lib/*.js index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bintrees@1.0.2 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Using node version 10.15.1 and npm 6.4.1 on debian 9.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant