Skip to content

Commit 2d6ddc3

Browse files
Update dump.sh (#204)
`dot package dump` shows an error while dumping npm packages due to the change on default homebrew prefix on M1 Macs. ``` dot package package dump > Brew apps dumped on /Users/roi/.dotfiles/os/mac/brew/Brewfile > Python apps dumped on /Users/roi/.dotfiles/langs/python/requirements.txt ls: /usr/local/lib/node_modules: No such file or directory ``` Changing hardcoded path to use `$HOMEBREW_PREFIX` env var solves the problem Co-authored-by: Rafa Gómez <rgomezcasas@gmail.com>
1 parent ab4e786 commit 2d6ddc3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/package/src/dump.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ package::python_import() {
7070
package::npm_dump() {
7171
mkdir -p "$DOTFILES_PATH/langs/js"
7272

73-
ls -1 /usr/local/lib/node_modules | grep -v npm >"$NPM_DUMP_FILE_PATH"
73+
ls -1 $HOMEBREW_PREFIX/lib/node_modules | grep -v npm >"$NPM_DUMP_FILE_PATH"
7474
}
7575

7676
package::npm_import() {

0 commit comments

Comments
 (0)