From 6a33b342ec4851008b0dcde9545c123a473b24e6 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Wed, 7 Mar 2018 11:05:46 +0900 Subject: [PATCH] update buildspec.yml --- buildspec.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/buildspec.yml b/buildspec.yml index 946cd15..4af6bb0 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -7,10 +7,13 @@ env: phases: install: commands: - - npm install -g n - - n latest + - sudo apt-get install -y nodejs npm + - sudo npm cache clean + - sudo npm install -g n + - sudo n stable + - sudo ln -sf /usr/local/bin/node /usr/bin/node + - sudo apt-get purge -y nodejs npm - npm update -g npm - - npm install - npm -g install aws-sam-local - npm -g install node-jq - python -m venv .