Hi Om I uninstalled royale-js and cli the first gave the same 'invalid entry' errors but installed anyway
the cli gave these errors (I did install with sudo!): node-pre-gyp ERR! Pre-built binaries not installable for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp ERR! Hit error EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@apache-royale/cli/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64' gyp ERR! clean error gyp ERR! stack Error: EACCES: permission denied, rmdir 'build' gyp ERR! System Darwin 17.5.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "clean" gyp ERR! cwd /usr/local/lib/node_modules/@apache-royale/cli/node_modules/fsevents gyp ERR! node -v v10.0.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js clean' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/@apache-royale/cli/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:947:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:236:5) node-pre-gyp ERR! System Darwin 17.5.0 node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/@apache-royale/cli/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /usr/local/lib/node_modules/@apache-royale/cli/node_modules/fsevents node-pre-gyp ERR! node -v v10.0.0 node-pre-gyp ERR! node-pre-gyp -v v0.9.1 node-pre-gyp ERR! not ok Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js clean' (1) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/@apache-royale/cli/node_modules/fsevents): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node install` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 Thoughts? Dany Op 8 mei 2018 om 08:40 uur uur schreef OmPrakash Muppirala <[email protected]>: Dany, I updated my pushed a new version of cli a couple days ago. This was published using the latest versions of npm and node.js Can you please try these commands and let me know how it goes? npm install -g @apache-royale/royale-js npm install -g @apache-royale/cli royale new new-test cd new-test royale serve:debug Thanks, Om On Wed, May 2, 2018 at 1:05 AM, Dany Dhondt <[email protected]> wrote: :) nice to know that messing things up makes your day My aim is to expand the Hello world app to a real boilerplate app in which a basic layout is used and where most common components are shown. I would also like to implement one server call (which might return some json) to get people started. -Dany Op 2 mei 2018 om 09:59 uur uur schreef OmPrakash Muppirala < [email protected]>: Okay, I bumped my versions and the good news is that everything is messed up on my computer as well :-) Thanks for your patience Dany. I will try to debug this issue soon and make a new release. Regards, Om On Wed, May 2, 2018 at 12:23 AM, Dany Dhondt <[email protected]> wrote: my-royale-app dany$ > node -v v8.11.1 my-royale-app dany$ > npm -v 6.0.0 -Dany Op 2 mei 2018 om 09:19 uur uur schreef OmPrakash Muppirala < [email protected]>: Ah that makes more sense. It looks like mxmlc (the compiler) is not able to access the Main.mxml file. So, it fails at the compilation step. Instead of erroring out right away, the server tries to load a non existent index.html. As someone mentioned earlier, this might be because of the npm version mismatch. Can you please let me know what your npm and node.js versions are? Mine are: C:\temp\royale-test\my-app>npm -v 4.3.0 C:\temp\royale-test\my-app>node -v v7.7.1 Thanks, Om On Wed, May 2, 2018 at 12:09 AM, Dany Dhondt <[email protected]> wrote: this is the complete error listing: my-royale-app dany$ > royale serve:debug Compiling... WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.common.base. internal.Finalizer (file:/Users/dany/Downloads/apache-royale-0.9.2-bin-js/ royale-asjs/js/lib/guava.jar) to field java.lang.Thread.inheritableThreadLocals WARNING: Please consider reporting this to the maintainers of com.google.common.base.internal.Finalizer WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release Error: unable to open 'HD/Documents/ARCHEMEDIA/ ROYALE/my-royale-app/src/Main.mxml'. Command failed: mxmlc /Volumes/Macintosh HD/Documents/ARCHEMEDIA/ ROYALE/my-royale-app/src/Main.mxml -debug=true WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.common.base. internal.Finalizer (file:/Users/dany/Downloads/apache-royale-0.9.2-bin-js/ royale-asjs/js/lib/guava.jar) to field java.lang.Thread.inheritableThreadLocals WARNING: Please consider reporting this to the maintainers of com.google.common.base.internal.Finalizer WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release Error: unable to open 'HD/Documents/ARCHEMEDIA/ ROYALE/my-royale-app/src/Main.mxml'. fs.js:646 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^ Error: ENOENT: no such file or directory, open '/Volumes/Macintosh HD/Documents/ARCHEMEDIA/ROYALE/my-royale-app/bin/js-debug/index.html' at Object.fs.openSync (fs.js:646:18) at Object.fs.readFileSync (fs.js:551:33) at updateIndex (/usr/local/lib/node_modules/@ apache-royale/cli/index.js:125:24) at compileDebug (/usr/local/lib/node_modules/@ apache-royale/cli/index.js:106:9) at serveDebug (/usr/local/lib/node_modules/@ apache-royale/cli/index.js:88:5) at Object.<anonymous> (/usr/local/lib/node_modules/@ apache-royale/cli/index.js:59:13) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12)
