Closed Youdaman closed 5 years ago
Found a fix to install, added quotes to babel.config.js first/only line:
'../boilerplate/babel.config.js'
But now npm start
errors with:
$ npm start
> lance-pong@4.0.0 start C:\Users\Youdaman\Desktop\tinygames\pong
> node dist-server/main.js
C:\Users\Youdaman\Desktop\tinygames\pong\dist-server\main.js:1
(function (exports, require, module, __filename, __dirname) { import path from 'path';
^^^^^^
SyntaxError: Unexpected token import
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! lance-pong@4.0.0 start: `node dist-server/main.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the lance-pong@4.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Youdaman\AppData\Roaming\npm-cache\_logs\2019-03-22T16_28_37_913Z-debug.log
Will consult Google :)
Assuming this is something to do with Babel. Or maybe Windows?
I tried it both on linux and windows, and it worked well for me. what version of node are you using? I'm using 8.9.0 (when in windows).
the files babel.config.js, .gitignore, and .eslintrc.js are softlinks to the actual files in ../boilerplate try removing the links, and copying the original files into the pong directory to see if that helps.
Tried running
npm install
for the pong example as per the instructions on the home page:And here is the debug.log mentioned above: