scottrogowski / code2flow

Pretty good call graphs for dynamic languages
MIT License
3.98k stars 295 forks source link

Acorn is required to parse javascript files but was not found on the path. Install it from npm and try again. #59

Closed huchengtong closed 2 years ago

huchengtong commented 2 years ago

code2flow /Users/fuxingdong/Downloads/lottery-master/js/member.js

Acorn is required to parse javascript files but was not found on the path. Install it from npm and try again.

How to solve ?

huchengtong commented 2 years ago

Install it from npm and try again can't solve it

GaryHebert commented 2 years ago

Did you install it globally?

npm install -g acorn

scottrogowski commented 2 years ago

Gary Hebert's answer is correct. Closing for inactivity.