aws-sam-cli icon indicating copy to clipboard operation
aws-sam-cli copied to clipboard

Unable to install on AWS Cloud9

Open johnjelinek opened this issue 9 years ago • 7 comments

Installation Started

Package c9.ide.lambda 3
-----------------------
Installing SAM Local
|
> [email protected] preuninstall /root/.c9/node/lib/node_modules/aws-sam-local
> go-npm uninstall

npm WARN engine [email protected]: wanted: {"node":">=4.5.0"} (current: {"node":"4.4.6","npm":"2.15.5"})
-
> [email protected] postinstall /root/.c9/node/lib/node_modules/aws-sam-local
> go-npm install

Downloading from URL: https://github.com/awslabs/aws-sam-local/releases/download/v0.2.2/sam_0.2.2_linux_amd64.tar.gz
[email protected] /root/.c9/node/lib/node_modules/aws-sam-local
└── [email protected] ([email protected], [email protected], [email protected])
npm ERR! Linux 3.10.0-123.el7.x86_64
npm ERR! argv "/root/.c9/node/bin/node" "/root/.c9/node/bin/npm" "explore" "-g" "[email protected]" "--" "ln -sfv $(pwd)/bin/* /usr/bin/"
npm ERR! node v4.4.6
npm ERR! npm  v2.15.5

npm ERR! It doesn't look like [email protected] is installed.
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /root/.c9/empty/npm-debug.log

Failed npm-g. Exit code 1

johnjelinek avatar Dec 03 '17 14:12 johnjelinek

John, SAM Local is installed by default on AWS Cloud9 — Have you checked prior to re-installing?

Tho it’d be great to see what’s inside npm-debug.log to understand what happened here

On Sun, 3 Dec 2017 at 06:04, John Jelinek IV [email protected] wrote:

Installation Started

Package c9.ide.lambda 3

Installing SAM Local |

[email protected] preuninstall /root/.c9/node/lib/node_modules/aws-sam-local go-npm uninstall

npm WARN engine [email protected]: wanted: {"node":">=4.5.0"} (current: {"node":"4.4.6","npm":"2.15.5"})

[email protected] postinstall /root/.c9/node/lib/node_modules/aws-sam-local go-npm install

Downloading from URL: https://github.com/awslabs/aws-sam-local/releases/download/v0.2.2/sam_0.2.2_linux_amd64.tar.gz [email protected] https://github.com/awslabs/aws-sam-local/releases/download/v0.2.2/[email protected] /root/.c9/node/lib/node_modules/aws-sam-local └── [email protected] ([email protected], [email protected], [email protected]) npm ERR! Linux 3.10.0-123.el7.x86_64 npm ERR! argv "/root/.c9/node/bin/node" "/root/.c9/node/bin/npm" "explore" "-g" "[email protected]" "--" "ln -sfv $(pwd)/bin/* /usr/bin/" npm ERR! node v4.4.6 npm ERR! npm v2.15.5

npm ERR! It doesn't look like [email protected] is installed. npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request: npm ERR! /root/.c9/empty/npm-debug.log

Failed npm-g. Exit code 1

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/awslabs/aws-sam-local/issues/212, or mute the thread https://github.com/notifications/unsubscribe-auth/ADL4BI17aSBjwcgHsw8p3QzFr4QLwqxuks5s8qpJgaJpZM4QzuuY .

heitorlessa avatar Dec 03 '17 18:12 heitorlessa

it turns out that Cloud9 fails to initially install when you provide a root SSH user when creating your environment.

johnjelinek avatar Dec 03 '17 21:12 johnjelinek

Hello @johnjelinek , how did you solved that problem ? I have other user on my server but impossible to connect with them, only root is working, but have the same problem as you described with SSH remote connection.

Thanks in advance

foufrix avatar Feb 07 '18 21:02 foufrix

Cloud9 comes bundled with SAM CLI. You don't have to do anything extra now :)

sanathkr avatar Jun 01 '18 00:06 sanathkr

It comes bundled with 0.2.11. Any chance of updating to 3.0?

singledigit avatar Jun 18 '18 17:06 singledigit

C9 comes bundled with the npm installation of SAM, but newer versions of SAM need to be installed using pip, will this be fixed in future?

samcodrington avatar Aug 14 '18 00:08 samcodrington

+1 Can anyone respond to this as a simply upgrade path is a requirement for development

judahb avatar Nov 12 '18 16:11 judahb