Skip to content

Instantly share code, notes, and snippets.

@aaronj1335
Created May 18, 2012 22:19
Show Gist options
  • Select an option

  • Save aaronj1335/2727870 to your computer and use it in GitHub Desktop.

Select an option

Save aaronj1335/2727870 to your computer and use it in GitHub Desktop.
npm link issue
[me@laptop:code/] $ cd A
[me@laptop:code/A] $ npm link # this works as i expect (and want)
[me@laptop:code/A] $ ll /usr/local/lib/node_modules
...
lrwxr-xr-x 1 me admin 22 May 18 16:59 /usr/local/lib/node_modules/A -> /Users/me/code/A
...
[me@laptop:code/A] $ cd ../B
[me@laptop:code/B] $ cat package.json
...
"dependencies": {
"A": "0.0.x"
}
...
[me@laptop:code/B] $ npm install --link
[me@laptop:code/B] $ ll ./node_modules # this also works as i expect
...
lrwxr-xr-x 1 me admin 22 May 18 16:59 node_modules/A -> /usr/local/lib/node_modules/A
...
[me@laptop:code/B] $ ll /usr/local/lib/node_modules # global link has been replaced with static install
...
drwxr-xr-x 1 me admin 22 May 18 16:59 /usr/local/lib/node_modules/A
...
@aaronj1335
Copy link
Copy Markdown
Author

aaronj1335 commented May 20, 2012 via email

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