Skip to content

Commit

Permalink
🐛 fix(node): use npm instead of yarn -_-
Browse files Browse the repository at this point in the history
yarn causes issues with npmlog
see npm/npmlog#48
  • Loading branch information
make-github-pseudonymous-again committed Aug 20, 2018
1 parent ba1f21e commit 43092e3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .config/fish/path.fish
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ if test -d $RUBY_PATH
end

# node path
set -gx NODE_PATH /usr/local/share/.config/yarn/global/node_modules:/usr/lib/node_modules
#set -gx NODE_PATH /usr/local/share/.config/yarn/global/node_modules:/usr/lib/node_modules
set -gx NODE_PATH /usr/lib/node_modules
3 changes: 2 additions & 1 deletion .path
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ if [ -d "$RUBY_PATH" ] ; then
fi

# Node path
export NODE_PATH=/usr/local/share/.config/yarn/global/node_modules:/usr/lib/node_modules;
#export NODE_PATH=/usr/local/share/.config/yarn/global/node_modules:/usr/lib/node_modules;
export NODE_PATH=/usr/lib/node_modules;
2 changes: 1 addition & 1 deletion bootstrap/clean
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fi

if command -v yarn 1>/dev/null; then

yarn_installed="$(jq -r < /usr/local/share/.config/yarn/global/package.json '.dependencies | keys[]')"
yarn_installed="$(jq -r < /usr/local/share/.config/yarn/global/package.json '.dependencies | keys[]' 2>/dev/null)"

function _y ( ) {
if { <<< "$pacman_installed" grep "^$1\$" 1>/dev/null 2>&1 ; } ; then
Expand Down
5 changes: 3 additions & 2 deletions bootstrap/update-node
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ if [ $(id -u) != "0" ]; then
exit 1
fi

if command -v yarn 1>/dev/null; then
if false; then
#if command -v yarn 1>/dev/null; then

echo " # using yarn"

yarn_installed="$(jq -r < /usr/local/share/.config/yarn/global/package.json '.dependencies | keys[]')"
yarn_installed="$(jq -r < /usr/local/share/.config/yarn/global/package.json '.dependencies | keys[]' 2>/dev/null)"

function _ ( ) {
if ! { <<< "$yarn_installed" grep "^$1\$" 1>/dev/null 2>&1 ; } ; then
Expand Down

0 comments on commit 43092e3

Please sign in to comment.