(node:3506) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use node --trace-warnings ...
to show where the warning was created)
/Users/vladimir/Desktop/Projects/gta-server/node_modules/altv-srv/dist/index.esm.js:1
import{Octokit as R}from"@octokit/core";var G=new R;function j(t,e){let o=t.assets.find(r=>r.name==e);return o==null?null:o.browser_download_url}async function $(t,e,o){try{let r=await G.request("GET /repos/{owner}/{repo}/releases",
... removed part of the obfuscated code
l=m(t,r);u(l)&&await g(l)}};export{O as hardRegistry,oe as install,le as remove};
^^^^^^
SyntaxError: Cannot use import statement outside a module
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1033:15)
at Module._compile (node:internal/modules/cjs/loader:1069:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at ModuleWrap. (node:internal/modules/esm/translators:170:29)
at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
import * as server from 'altv-srv';
await server.install("../", "release", ["server", "js"]);