You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Node.js v6.3.0 introduced a new option --preserve-symlinks that allows to make node resolve dependencies based on the symlinks location, not the realpath (read more: nodejs/node#3402)
This new feature makes it possible to use a global store for pnpm and as a consequence to greatly reduce the disk space needed for dependencies. (a discussion about this was here: #19)
However, the preserve symlinks feature is disabled by default and should be passed to node every time. E.g., node --preserve-symlinks index.js. As a consequence, executable in node_modules/.bin will not be executed with the --preserve-symlinks option.
Proposed changes
(node: I suggest to make these changes on top of #242)
The executables in .bin can be forced to run with --preserve-symlinks by
changing the shebangs to pass the --preserve-symlinks option to node
changing them from symlinks to proxy-files (real files that require the bin files from the symlinked package). E.g.:
Node.js v6.3.0 introduced a new option
--preserve-symlinks
that allows to make node resolve dependencies based on the symlinks location, not the realpath (read more: nodejs/node#3402)This new feature makes it possible to use a global store for pnpm and as a consequence to greatly reduce the disk space needed for dependencies. (a discussion about this was here: #19)
However, the preserve symlinks feature is disabled by default and should be passed to node every time. E.g.,
node --preserve-symlinks index.js
. As a consequence, executable innode_modules/.bin
will not be executed with the--preserve-symlinks
option.Proposed changes
(node: I suggest to make these changes on top of #242)
The executables in
.bin
can be forced to run with--preserve-symlinks
bychanging the shebangs to pass the
--preserve-symlinks
option to nodechanging them from symlinks to proxy-files (real files that require the bin files from the symlinked package). E.g.:
making executables from the proxy-files. E.g.
chmod 755 node_modules/.bin/eslint
The text was updated successfully, but these errors were encountered: