Giter Club home page Giter Club logo

vector2's People

Contributors

brendoncon avatar

Watchers

 avatar  avatar

vector2's Issues

'primordials is not defined' on npm install

Hi, is this still maintained?
I'm getting a build error:

[email protected] postinstall
gulp build && gulp dist

[10:02:12] Failed to load external module @babel/register
[10:02:12] Requiring external module babel-register
fs.js:47
} = primordials;
^

ReferenceError: primordials is not defined
at fs.js:47:5
at req_ (/Users/ck/Desktop/vector2/node_modules/natives/index.js:143:24)
at Object.req [as require] (/Users/ck/Desktop/vector2/node_modules/natives/index.js:55:10)
at Object. (/Users/ck/Desktop/vector2/node_modules/vinyl-fs/node_modules/graceful-fs/fs.js:1:37)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Object.require.extensions. [as .js] (/Users/ck/Desktop/vector2/node_modules/babel-register/lib/node.js:152:7)
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)
npm ERR! code 1
npm ERR! path /Users/ck/Desktop/vector2
npm ERR! command failed
npm ERR! command sh -c gulp build && gulp dist

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ck/.npm/_logs/2022-10-10T17_02_12_486Z-debug.log

setMag function

Should normalise and then set your magnitude using the normalise and multiply functions.

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.