Npm install --save babylonjs

Where do I type this line of code, it tells me nowhere?
I have been a computer programmer for 30 plus years!
Why didn’t you inform people of where to type this?

npm install --save babylonjs

npm is a JavaScript package manager.
It allows you to install libraries to use in your JavaScript projects.

Please take a look at tutorials or guides that show you how to setup a project, for example, this one:

Thank you, I knew it is a node package manager, but no where did it tell me where to type the command.

I watched the video and will install node, thank you. So I must enter the command in my command prompt.

Sincerely, jim

213 222-3550

Jameslynch053@gmail.com.

Glad to help!

It’s THE Node Package Manager, hence the acronym NPM :slight_smile:

By the way, there are multiple ways to use BabylonJS.
If you prefer to use the GUI instead of the command prompt,
you might want to take a look at the BabylonJS Editor.

Thank you, bye the way, installed so much software to get npm, I unistalled it all,

I will not use npm as I have to install 10 other programs. I do not like to ruin my files with a bunch of unneeded garbage files.

I have been coding decades so I love all the code in Babylon, I can use ti probably as raw code snippets. I have my own HTML5, CSS3, ES7 2017 libraries, 3D graphics, helper utility, and dozens of web p[age apps, they each include an Audio() & Video() object custom built by me. I love the CSS3 transformations, animations, etc, …

Thank you very much.

James lynch

213 222-3550

Jameslynch053@gmail.com

In the near future I will make my GitHub.com repository and give you the code, then turn it back to private.

I cannot believe in 2021, Babylonjs does not have a simple web page to install their great program.

I have been trying for months to install any of the big library (Game engines) THREE.js, playCanvans, and many others.

It is sad they prevent us all form our own files with the stupid CORS error cross domain.

tHEY ARE MY FILES, MY COMPUTER, MY EVERYTHING, YET THE FUCKING bROWSER STOPS THE TASK!

mAD AS HELL ABOUT THAT.

dO YOU HAVE PROBLEMS cors IF SO HOW DID YOU SOLVE IT, WITH BUYING SERVER TIME?

nICE TO EMAIL YOU.

Sorry, I have a K380 Logitech keyboard and it is so small I always hit the caplocks by accident.

Great little keyboard though, and I love the Logitech M535 or close

Here is a simple minded way to install core babylon.js on your computer:

  1. Open your favourite editor on a new page
  2. Vist Babylon.js/dist at master · BabylonJS/Babylon.js · GitHub and scroll down
    2a. Choose the file you want, babylon.js for minimum file, babylon.max.js for readable file
    2b. Open the file you want
    2c. View raw
    2d. Select all and copy file
  3. Paste into empty page
  4. Save page.

If you want other features then you need to look inside folders on Babylon.js/dist at master · BabylonJS/Babylon.js · GitHub such a the GUI, loader, materialslibrary folders and copy and paste the raw files you need.

If you have cors problems locally with images then store them on imgur and reference them from there.

1 Like

Thank you for replying I finally figured out all to do it correctly. I installed like 10 packages.
If you want some code try my respository on github, named JamesLynchBond/Web-Games-ES7, I wrote 96% of it myself. Tell me if you like it. It is 160 MB for a download zip.

Thank you, jim