Skip to content

Cannot find module 'acorn/package.json' #94

@hdby99

Description

@hdby99

I'm trying to run Code2flow for JS on RHEL 8. I've installed all the dependencies (graphviz@0.0.9 and acorn@8.11.3).
I've tried reinstalling acorn and checked if it is on system's PATH.

`Error: Cannot find module 'acorn/package.json'
Require stack:

  • /usr/local/lib/python3.6/site-packages/code2flow-2.5.1-py3.6.egg/code2flow/[eval]
    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
    at Module._load (node:internal/modules/cjs/loader:901:27)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at require (node:internal/modules/helpers:130:18)
    at [eval]:1:1
    at Script.runInThisContext (node:vm:122:12)
    at Object.runInThisContext (node:vm:296:38)
    at node:internal/process/execution:83:21
    at [eval]-wrapper:6:24
    at runScript (node:internal/process/execution:82:62) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/usr/local/lib/python3.6/site-packages/code2flow-2.5.1-py3.6.egg/code2flow/[eval]'
    ]
    `
    I would really appreciate if someone could help me sort this out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions