Welcome to mirror list, hosted at ThFree Co, Russian Federation.

folders.md « doc - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d2926c432e72e7822273ec7113a364a2cda48ef6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
npm-folders(1) -- Folder Structures Used by npm
===============================================

## DESCRIPTION

Everything lives in the `root` setting. This defaults to
`$HOME/.node_libraries/`. I'd like to be able to override it, but that's not
possible yet.

`root/.npm/foo` is where the stuff for package `foo` would go.

`root/.npm/foo/1.0.0/package` the contents of the tarball containing foo
version 1.0.0

`root/.npm/foo/1.0.0/main.js` Generated file that exports the `main` module in
foo.

`root/.npm/foo/1.0.0/lib` symlink to the `lib` dir in foo.

`root/.npm/foo/active` symlink to the active version.

`root/foo-1.0.0.js` symlink to `.npm/foo/1.0.0/main.js`

`root/foo.js` symlink to `.npm/foo/active/main.js`

`root/foo` symlink to `.npm/foo/active/lib`

`root/foo-1.0.0` symlink to `.npm/foo/1.0.0/lib`