You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
amplify-cli fails to install using npm install -g @aws-amplify/cli
gyp WARN EACCES user "undefined" does not have permission to access the dev dir "/root/.node-gyp/10.15.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/kerberos/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/kerberos/.node-gyp'
gyp ERR! System Linux 4.15.0-54-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/@aws-amplify/cli/node_modules/kerberos
gyp ERR! node -v v10.15.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
gyp WARN EACCES user "undefined" does not have permission to access the dev dir "/root/.node-gyp/10.15.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/fs-ext/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/fs-ext/.node-gyp'
gyp ERR! System Linux 4.15.0-54-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /usr/local/lib/node_modules/@aws-amplify/cli/node_modules/fs-ext
gyp ERR! node -v v10.15.1
gyp ERR! node-gyp -v v3.8.0
To Reproduce
docker run -it node:10-alpine sh -c "apk add python && npm install -g @aws-amplify/cli"
environment details
node 10 & 12. In used node's docker image in the steps to reproduce. I came across this issue running ubuntu 16 and was able to replicate exactly in docker.
Additional context
Older versions still work. I was able to successfully install 1.7.1:
docker run -it node:12-alpine sh -c "apk add python && npm install -g @aws-amplify/[email protected]"
The text was updated successfully, but these errors were encountered:
Describe the bug
amplify-cli fails to install using
npm install -g @aws-amplify/cli
To Reproduce
docker run -it node:10-alpine sh -c "apk add python && npm install -g @aws-amplify/cli"
Expected behavior
install cleanly
logs
amplify_cli_install_logs.txt
environment details
node 10 & 12. In used node's docker image in the steps to reproduce. I came across this issue running ubuntu 16 and was able to replicate exactly in docker.
Additional context
Older versions still work. I was able to successfully install 1.7.1:
The text was updated successfully, but these errors were encountered: