diff --git a/home/.chezmoiscripts/universal/run_onchange_after_26-system-vscode-node-modules.sh.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_26-system-vscode-node-modules.sh.tmpl index cdeaffbe..44cf9ee7 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_26-system-vscode-node-modules.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_26-system-vscode-node-modules.sh.tmpl @@ -52,17 +52,17 @@ {{ includeTemplate "universal/profile" }} {{ includeTemplate "universal/logg" }} -if command -v code > /dev/null && command -v pnpm > /dev/null && [ -f "${XDG_DATA_HOME:-$HOME/.local/share}/vscode/package.json" ]; then +if command -v code > /dev/null && command -v npm > /dev/null && [ -f "${XDG_DATA_HOME:-$HOME/.local/share}/vscode/package.json" ]; then ### Install linter fallback node_modules / package.json to system or home directory if sudo cp -f "${XDG_DATA_HOME:-$HOME/.local/share}/vscode/package.json" /package.json; then logg info 'Successfully copied linter fallback configurations package.json to /package.json' logg info 'Installing system root directory node_modules' - cd / && sudo pnpm i --no-lockfile || EXIT_CODE=$? + cd / && sudo npm i --no-package-lock || EXIT_CODE=$? else logg warn 'Unable to successfully copy linter fallback configurations package.json to /package.json' logg info 'Installing linter fallback configurations node_modules to home directory instead' cp -f "${XDG_DATA_HOME:-$HOME/.local/share}/vscode/package.json" "$HOME/package.json" - cd ~ && pnpm i --no-lockfile || EXIT_CODE=$? + cd ~ && npm i --no-package-lock || EXIT_CODE=$? fi ### Log message if install failed