niklasvh / php.js

PHP to JavaScript converter and VM written in JavaScript
http://phpjs.hertzen.com
MIT License
860 stars 115 forks source link

Build Fails: node build/build.js #57

Closed sstur closed 10 years ago

sstur commented 10 years ago

When running the command node build/build.js it seems to be expecting a non-extant file src/include.js. Full error is:

module.js:340
    throw err;
          ^
Error: Cannot find module '../src/include.js'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Users/Me/projects/phpjs/build/build.js:10:13)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
niklasvh commented 10 years ago

Thanks! I've updated the readme regarding how to build the lib, as well as cleaned up the whole building a bit. Updated the tests to be run by grunt (using phantomjs) and added the project to travis as well.

The whole project is quite a mess, and was purely for experimenting and personal learning ages ago, so I strongly recommend not to use it for anything but feel free to have a look around :)

sstur commented 10 years ago

Thanks! I think this project is really great for playing with PHP in the browser and to help beginners learn, I really appreciate you putting the effort into it!