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

Missing node_modules errors #11

Open
elmariofredo opened this issue Feb 3, 2016 · 1 comment
Open

Missing node_modules errors #11

elmariofredo opened this issue Feb 3, 2016 · 1 comment

Comments

@elmariofredo
Copy link
Member

IDEs ( Webstorm ) and builders ( Webpack ) relay on presence of node_module folder we need to resolve this issue in order to enable seamless DDD experience.

@elmariofredo
Copy link
Member Author

we will use @vire solution for moving node_modules folder to the mount project path.

Steps:

  1. remove existing node_modules under project folder >> rm -rf /srv/node_modules
  2. move node_modules under project folder >> mv /usr/lib/node_modules /srv/
  3. update permissions to match current user >> chown -R $(ls -l package.json | awk '{print $3 ":" $4}') /srv/node_modules

I'm thinking to bake this into the image to .bashrc or as simple script which will get executed by soos before any other command.

See https://groups.google.com/forum/#!topic/docker-user/zMAEdzC7Y_I

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

No branches or pull requests

1 participant