-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected token '.' #25
Comments
I was having this issue on a Mac as well. For me the issue was happening due to the version of node that I was using. On node v12.22.1 this error was being generated. For work I need to switch between different version of node regularly, so I used nvm to change the node version to v14.17.0, and the pdf generated successfully. Hope this helps. |
Are you using NVM for windows? I experienced something similar with NPX and with the same error message (when installing docusaurus with npx). What worked for me was to upgrade "NVM for windows" to the latest version. (https://github.com/coreybutler/nvm-windows) Afterwards, you also have to reinstall the node version(s) causing problems, see: npm/cli#4234 (comment) |
Close the issue according to the @pankaj-pant solution. Thanks! |
Re-open this issue. Benefits when considering Dockerize. |
OS: Windows 10
Running the example command for Docusaurus v2 fails with the message
Unexpected token '.'
Command:
Screenshot:
![image](https://user-images.githubusercontent.com/35562058/123687140-3315c900-d86e-11eb-8a99-83923bb75420.png)
The text was updated successfully, but these errors were encountered: