Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dockerfile to run example #31

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

roaslin
Copy link

@roaslin roaslin commented Dec 15, 2023

Added dockerfile.dev and docker-compose.yml to run the example locally

I can't really test the checkout because I don't have a Sandbox account API key.

Issue

I ran into this error while running the example

            npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /home/blah/projects/example-web-checkout/node_modules/body-parser
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/home/blah/projects/example-web-checkout/node_modules/body-parser'
npm ERR!  [Error: EACCES: permission denied, mkdir '/home/blah/projects/example-web-checkout/node_modules/body-parser'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: '/home/blah/projects/example-web-checkout/node_modules/body-parser'
npm ERR! }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! 
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

Solves

  • Running into permissions errors when running npm i
  • Avoid installing npm modules on local machine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant