create-ava | Add AVA to your project | Runtime Evironment library
kandi X-RAY | create-ava Summary
kandi X-RAY | create-ava Summary
Add AVA to your project
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of create-ava
create-ava Key Features
create-ava Examples and Code Snippets
Community Discussions
Trending Discussions on create-ava
QUESTION
I am trying to deploy a node express, react application on aws's ElasticBeanstalk. But the application deployment fails during the npm install on the instance.
...Upload Complete. 2018-12-22 20:12:20 INFO Environment update is starting. 2018-12-22 20:12:23 INFO Deploying new version to instance(s). 2018-12-22 20:12:48 ERROR Failed to run npm install. Snapshot logs for more details. 2018-12-22 20:12:50 ERROR [Instance: i-0a7458ff1bef89f9a] Command failed on instance. Return code: 1 Output: (TRUNCATED)...opt/elasticbeanstalk/containerfiles/ebnode.py", line 180, in npm_install raise e subprocess.CalledProcessError: Command '['/opt/elasticbeanstalk/node-install/node-v10.14.1-linux-x64/bin/npm', '--production', 'install']' returned non-zero exit status 1. Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/50npm.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI. 2018-12-22 20:12:50 INFO Command execution completed on all instances. Summary: [Successful: 0, Failed: 1]. 2018-12-22 20:12:50
ERROR Unsuccessful command execution on instance id(s) 'i-0a7458ff1bef89f9a'. Aborting the operation. 2018-12-22 20:12:50
ERROR Failed to deploy application.
ERROR: ServiceError - Failed to deploy application.
ANSWER
Answered 2018-Dec-22 at 20:30It looks like you have a permission problem:
gyp verb build dir attempting to create "build" dir: /tmp/deployment/application/node_modules/node-sass/build gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/tmp/deployment/application/node_modules/node-sass/build' gyp ERR! System Linux 4.14.77-70.82.amzn1.x86_64 gyp ERR! command "/opt/elasticbeanstalk/node-install/node-v10.14.1-linux-x64/bin/node"
I'm not sure why that is happening - do you need sudo access?
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install create-ava
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page