Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

SyntaxError: Unexpected token * #104

Open
wratke opened this issue Jun 21, 2018 · 9 comments
Open

SyntaxError: Unexpected token * #104

wratke opened this issue Jun 21, 2018 · 9 comments

Comments

@wratke
Copy link

wratke commented Jun 21, 2018

I've installed the foundation cli without any errors (with this command: npm install --global foundation-cli), but when I try to run foundation I get the following error. I've tried uninstalling and reinstalling foundation cli but I always get the same error when I try to run foundation.

C:\Users...\AppData\Roaming\npm\node_modules\foundation-cli\node_modules\string-kit\lib\format.js:521
base = round( n / ( 1000 ** logDiv3 ) , roundStep[ logMod ] ) ;
^

SyntaxError: Unexpected token *
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. (C:\Users...\AppData\Roaming\npm\node_modules\foundation-cli\node_modules\string-kit\lib\string.js:61:2)

@DanielRuf
Copy link
Contributor

Hi, which Node.js version do you use?
Can you check if a .babelrc file exists and provide more info about the configuration files?

@AvigdorB
Copy link

Same here:

λ foundation new --framework emails
C:\Users...\AppData\Roaming\npm\node_modules\foundation-cli\node_modules\string-kit\lib\format.js:521
base = round( n / ( 1000 ** logDiv3 ) , roundStep[ logMod ] ) ;
^
SyntaxError: Unexpected token *
at Object.exports.runInThisContext (vm.js:76:16)
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. (C:\Users...\AppData\Roaming\npm\node_modules\foundation-cli\node_modules\string-kit\lib\string.js:61:2)
at Module._compile (module.js:570:32)

λ npm -v
6.1.0

λ node -v
v10.5.0

@wratke
Copy link
Author

wratke commented Jun 28, 2018

I have version 6.11.3 of node.js installed. Am I looking for the .babelrc in the foundation cli files, or in the node.js installation? If you let me know where to look I can see if it exists.

@DanielRuf
Copy link
Contributor

Please try Node.js 8 or 10.

@AlexMarcoDAngelo
Copy link

Other things don't work with Node.js 8 or 10 :( I also keep getting:
C:\Users\angel\AppData\Roaming\npm\node_modules\foundation-cli\node_modules\string-kit\lib\format.js:624
base = round( n / ( 1000 ** logDiv3 ) , roundStep[ logMod ] ) ;
^

SyntaxError: Unexpected token *
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. (C:\Users\angel\AppData\Roaming\npm\node_modules\foundation-cli\node_modules\string-kit\lib\string.js:61:2)

with any foundation-cli command :(

@DanielRuf
Copy link
Contributor

Did you upgrade Node.js and npm and reinstall the dependencies?

@AlexMarcoDAngelo
Copy link

Yes, I did, now the build fsils

@DanielRuf
Copy link
Contributor

Please provide more info what exactly fails and what the error message is now.

@AlexMarcoDAngelo
Copy link

here it is: #108 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants