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

Acorn is installed to path, but I can't get it to work #85

Open
nicklasu opened this issue Jun 28, 2023 · 3 comments
Open

Acorn is installed to path, but I can't get it to work #85

nicklasu opened this issue Jun 28, 2023 · 3 comments

Comments

@nicklasu
Copy link

So I did the global install for acorn using npm install -g acorn, but I still get the following error:

line 250, in assert_dependencies assert is_installed('acorn'), "Acorn is required to parse javascript files " \ AssertionError: Acorn is required to parse javascript files but was not found on the path. Install it from npm and try again.

import code2flow
code2flow.code2flow(r'C:\Users\nikke\Downloads\Netview-system-develop', r'C:\Users\nikke\Downloads\test.png')

My environment is Windows 11 set in Finnish locale, python version 3.11 (installed through Microsoft Store) and npm is version 9.5.1. Acorn is version 8.9.0 (np, package version info was retrieved with npm list -g). Code2flow is version 2.5.1.

@Pyrrha
Copy link

Pyrrha commented Nov 7, 2023

Hello,

I had the same issue this morning. Please ensure that acorn is accessible from a simple CLI call : $ acorn
If it's not, then the installation didn't work properly. I used brew as recommended in official documentation. For Windows, you should use scoop.

@eddbird
Copy link

eddbird commented Jan 28, 2024

I am having the same issue. I could not find any solutions. I have tried installing acorn from npm and scoop with no success. This was also done in an elevated Powershell terminal to ensure no privilege issues creating hidden errors. Acorn is accessible from Powershell. All commands and relevant programs work, all PATH variables are set up correctly, and system reboots were done in this process repeatedly. I can't figure out why it isn't being found.

Environment: Windows 10 US English, Python 3.12.1, npm 10.4.0, Powershell 7.4.0, Pip 23.3.2, Code2flow version 2.5.1, Acorn v0.10.0 (from scoop install), Code2flow 2.5.1, and a partridge in a pear tree.

@gorkang
Copy link

gorkang commented Feb 7, 2024

Had the same issue. Solved it with:

curl https://get.acorn.io | sh

See docs: https://docs.acorn.io/install

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

4 participants