Sign in to follow this  


Recommended Posts

I am just starting to look into testing Phaser3, but I am trying to figure out what is the best way to set it up on my mac book pro. I have tried sudo  npm install phaser3-project-template  but the npm install always fails. I do have the latest node LTS installed (8.9.4).

Is there something I am doing wrong or is there a better way to get started.


I appreciate any assistance, thank you.

Share this post

Link to post
Share on other sites

The absolute simplest way to start a project I have found is to run `npm install phaser@beta` and then include the dist bundle directly via a script tag in your index.html

<script src="./node_modules/phaser/dist/phaser.js"></script>
<script> var game = new Phaser.Game(...);</script>

Run your project using a really simple HTTP server like http-server (from npm) in your project root so it can serve from the node_modules folder.

Anything beyond this will require you to plan out a project structure and possibly set up a more intelligent web server.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.