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

Cannot npm link into SMA server #1

Closed
jwulf opened this issue Mar 24, 2019 · 1 comment
Closed

Cannot npm link into SMA server #1

jwulf opened this issue Mar 24, 2019 · 1 comment

Comments

@jwulf
Copy link
Member

jwulf commented Mar 24, 2019

This is an issue on Docker for Mac where you have to give permissions to Docker.

I'm using nvm to manage Node, and it symlinks packages in /usr/local/opt...., which Docker can't mount by default.

➜ npm link @magikcraft/mct1    
/Users/sitapati/workspace/SMA/server/node_modules/@magikcraft/mct1 -> /usr/local/opt/nvm/versions/node/v10.9.0/lib/node_modules/@magikcraft/mct1 -> /Users/sitapati/workspace/SMA/mct1

The fix is to open Docker Preferences, and add /usr/local/opt to the files that Docker can mount.

Screen Shot 2019-03-23 at 9 55 35 pm

@jwulf
Copy link
Member Author

jwulf commented Mar 24, 2019

Nah, this is no good, because relative links are broken. Best to use custom binds in the package.json

@jwulf jwulf closed this as completed Apr 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant