Closed 0xMoaz closed 6 years ago
Hello @xeious. The warning you can ignore, it's getting fixed soon. As per the rest, there isn't enough information to go on, sorry. Please follow the issue template and try providing the data requested in it.
Running npm install --global @warriorjs/core
solved part of this issue for me.
I'm still dealing with this problem when I enter warriorjs on the command line (Windows 10):
C:\[my directory tree]\npm\node_modules\@warriorjs\cli\lib\cli.js:23
async function run(args) {
^^^^^^^^
SyntaxError: Unexpected token function
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:\[my directory tree]\npm\node_modules\@warriorjs\cli\bin\warriorjs.js:3:1)
@glenpierce Yeah, the remaining issue is the only one that matters (the other is just a warning that will be fixed soon, no need to install @warriorjs/core
). Now, to troubleshoot it, I need to ask you the same I asked @xeious. Please follow the issue template and try providing the data requested in it. (To find the issue template, click in "New Issue" and scroll down. You're looking for the section named "BUG TEMPLATE", please fill all the requested info there.)
I believe this is related to the version of Node you're running in your environments, but I can't be sure without that info. Thanks!
@olistic thanks, I've created the ticket. the command for gathering my environment details failed. I've simply included my npm version (4.5.0) and node version (6.10.3) for now.
@xeious I'm closing this in favor of #80. If after following the resolution steps there (upgrade to Node 8) you're still having issues, please open another issue following the issue template. Thanks!
I tried to install warriorjs but I got this message:
npm WARN @warriorjs/tower-beginner@0.1.0 requires a peer of @warriorjs/core@^0.0.0 but none was installed.
And when I try to run it by writing warriorjs in my terminal I got this message:/usr/local/lib/node_modules/@warriorjs/cli/lib/cli.js:23 async function run(args) { ^^^^^^^^ SyntaxError: Unexpected token function at createScript (vm.js:56:10) at Object.runInThisContext (vm.js:97:10) at Module._compile (module.js:542:28) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object.<anonymous> (/usr/local/lib/node_modules/@warriorjs/cli/bin/warriorjs.js:3:1)