Skip to content
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

Invalid syntax error during installation #1781

Closed
falej opened this issue Jul 5, 2019 · 3 comments
Closed

Invalid syntax error during installation #1781

falej opened this issue Jul 5, 2019 · 3 comments

Comments

@falej
Copy link

falej commented Jul 5, 2019

Note: If your issue/bug is regarding the AWS Amplify Console service, please log it in the
official AWS Amplify Console forum

Describe the bug
When running the sudo npm install -g @aws-amplify/cli there is an error from gyp package that says
gyp ERR! configure error gyp ERR! stack Error: Command failed: /anaconda3/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "<string>", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12) gyp ERR! stack at ChildProcess.emit (events.js:189:13) gyp ERR! stack at maybeClose (internal/child_process.js:970:16) gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:389:11) gyp ERR! stack at Socket.emit (events.js:189:13) gyp ERR! stack at Pipe._handle.close (net.js:597:12) gyp ERR! System Darwin 16.7.0
But the installation finishes correctly and the CLI is working

To Reproduce
Steps to reproduce the behavior:
Node version: 10.15.3
NPM version: 6.10.0
run command sudo npm install -g @aws-amplify/cli

Expected behavior
Run without errors, probably some warning, but no errors

Screenshots

Desktop (please complete the following information):

  • OS: macOS Sierra 10.12.6
  • Browser (N/A)
  • Version (N/A)

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@kaustavghosh06
Copy link
Contributor

Please refer to this issue which has an explaination to this - #783
This is tied to a specific version of node + fsevents installed globally in your system and in no ways does it affect the installation and usage of the CLI.

@falej
Copy link
Author

falej commented Jul 5, 2019 via email

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 27, 2021
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

2 participants