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

Issue on sudo make run #6

Open
TheMathGuyd opened this issue Jan 14, 2023 · 0 comments
Open

Issue on sudo make run #6

TheMathGuyd opened this issue Jan 14, 2023 · 0 comments

Comments

@TheMathGuyd
Copy link

I was able to follow the steps before this one. Asymptote itself is installed and functioning on this Debian 11 ARM VM. I get this error after sudo make run:

asymptote is not in the sudoers file. This incident will be reported

I switched to root, since it should have no problem with sudo

root@debian:/home/asymptote/asymptote-server# sudo make run
rm -rf clients/*
node server.js
internal/process/esm_loader.js:74
    internalBinding('errors').triggerUncaughtException(
                              ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'fs' imported from /home/asymptote/asymptote-server/serverAnalyzer.js
    at packageResolve (internal/modules/esm/resolve.js:664:9)
    at moduleResolve (internal/modules/esm/resolve.js:705:18)
    at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:798:11)
    at Loader.resolve (internal/modules/esm/loader.js:100:40)
    at Loader.getModuleJob (internal/modules/esm/loader.js:246:28)
    at ModuleWrap.<anonymous> (internal/modules/esm/module_job.js:47:40)
    at link (internal/modules/esm/module_job.js:46:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}
make: *** [Makefile:38: run] Error 1

Any guidance? Seems like the issue is with the fs module. I understand this is typically built in to nodejs but as someone unfamiliar with javascript, I cannot tell what the issue is.

Thank you

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