Aws-sam-cli: Unable to install on AWS Cloud9

Created on 3 Dec 2017  Â·  7Comments  Â·  Source: aws/aws-sam-cli

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

Most helpful comment

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

All 7 comments

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 notifications@github.com
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
.

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

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

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

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

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?

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

Was this page helpful?
0 / 5 - 0 ratings