stacks-cli icon indicating copy to clipboard operation
stacks-cli copied to clipboard

Fatal error on startup

Open ghost opened this issue 7 years ago • 13 comments

stacks-cli version: 0.1.42

node version: 8.9.1 32bits

steps to reproduce: simply run stacks-cli after installing it with npm i -g stacks-cli

error:

/usr/local/lib/node_modules/stacks-cli/bin/cli.js:16
const wappalyzer = require('wappalyzer')(options);

TypeError: Class constructor Driver cannot be invoked without 'new'
    at Object.<anonymous> (/usr/local/lib/node_modules/stacks-cli/bin/cli.js:16:41)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Function.Module.runMain (module.js:676:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3

installed versions of dependencies:

npm ls --depth=0
[email protected] /usr/local/lib/node_modules/stacks-cli
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

mitigation: if I downgrade to wappalyzer 5.1.6 it works.

ghost avatar Nov 27 '17 06:11 ghost

Same error with node 9.2.0 x64 on Windows 10

karli2000 avatar Nov 27 '17 06:11 karli2000

same error with node v7.10.0 on Ubuntu Linux 16.04

kodekracker avatar Nov 27 '17 06:11 kodekracker

I faced the same issue with node v8.7.0. The suggested mitigation worked for me. Seems like this is a compatibility issue with [email protected].

sbmthakur avatar Nov 27 '17 07:11 sbmthakur

same for for me:

➜  ~ stacks-cli
/usr/local/lib/node_modules/stacks-cli/bin/cli.js:16
const wappalyzer = require('wappalyzer')(options);
                                        ^

TypeError: Class constructor Driver cannot be invoked without 'new'
    at Object.<anonymous> (/usr/local/lib/node_modules/stacks-cli/bin/cli.js:16:41)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Function.Module.runMain (module.js:676:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3
➜  ~ node -v
v8.9.1

midgethoen avatar Nov 27 '17 07:11 midgethoen

Same here.

gchokov avatar Nov 27 '17 07:11 gchokov

Same here running on Mac OS 10.12.6

➜ node -v v7.8.0

fr0stxm avatar Nov 27 '17 08:11 fr0stxm

Same here on OSX 10.13.1 / Node v8.9.1

uniacid avatar Nov 27 '17 08:11 uniacid

Same for OSX 10.12.6 / Node v7.5.0

LaurensN avatar Nov 27 '17 08:11 LaurensN

Same on Ubuntu 16.04 / Node v8.2.1

zezic avatar Nov 27 '17 08:11 zezic

Same for OSX 10.12.16 / Node v8.9.1

drpgdigital avatar Nov 27 '17 08:11 drpgdigital

I think by now we know it is not related to any Node version or OS :) As @sbmthakur said, it looks like it is [email protected]

karli2000 avatar Nov 27 '17 08:11 karli2000

Hello all, thanks for all of your time and patience at first 🙏, just like @sbmthakur and @karli2000 said, it seems have some conflict with [email protected] this version, so I just downgraded it to @5.1.6 and released [email protected] already.

Actually I didn't expect this side project can receive such a huge attentions, so if there's still some potential issues, Pull Request or opening a new issue always welcome, and I will try to figure it out in my spare time, thanks everybody again.

WeiChiaChang avatar Nov 27 '17 09:11 WeiChiaChang

Nice work @WeiChiaChang, fixed over here 👍

LaurensN avatar Nov 27 '17 09:11 LaurensN