Git Product home page Git Product logo

altv-updater-js's Introduction

Hi there, i'm Timo ๐Ÿ‘‹

More at tbeck.dev

About me

  • ๐Ÿซ mostly self-taught
  • โš™๏ธ gaining fullstack experience since 2018
  • ๐ŸŒŸ highly confident developing Typescript and Golang

Whats up?

๐Ÿš€ I am currently working on several full-stack side projects.

โœ‰๏ธ If you would like to work with me contact me via Discord (Timo9#4468)

Skills - Technologies I use to realize Projects

Languages & Frameworks

bash c cplusplus csharp go html5 java javascript php laravel python sass typescript react vuejs nuxtjs svelte tailwind discordjs nestjs

DevOps & Others

azure github git netlify docker nodejs electron linux mariadb mysql nginx traefik postgresql redis sqlite mongodb figma solana altv cloudflare pocketbase

altv-updater-js's People

Contributors

dependabot[bot] avatar timo972 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

altv-updater-js's Issues

Cannot use import statement outside a module

node server_updater.js

(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)

My server_updater.js:

import * as server from 'altv-srv';

await server.install("../", "release", ["server", "js"]);

No native build was found for platform=linux arch=x64 runtime=node abi=93 uv=1 libc=glibc node=16.13.1

Windows 10
WSL

npx altv-srv --help

Got error:

***/node_modules/node-gyp-build/index.js:59
  throw new Error('No native build was found for ' + target + '\n    loaded from: ' + dir + '\n')
  ^

Error: No native build was found for platform=linux arch=x64 runtime=node abi=93 uv=1 libc=glibc node=16.13.1      
    loaded from: ***/node_modules/altv-srv/node_modules/cfg-reader

    at Function.load.path (***/node_modules/node-gyp-build/index.js:59:9)
    at load (***/node_modules/node-gyp-build/index.js:21:30)
    at Object.<anonymous> (***/node_modules/altv-srv/node_modules/cfg-reader/index.cjs:5:54)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (***/node_modules/altv-srv/dist/helpers/scaffold.helpers.js:4:22)
  System:
    OS: Linux (wsl) 4.4 Ubuntu 20.04.2 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
    Memory: 8.54 GB / 15.89 GB
    Container: Yes
    Shell: 5.8 - /usr/bin/zsh
  Binaries:
    Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node
    Yarn: 1.22.10 - /c/Program Files/nodejs/yarn
    npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.