Skip to content

Commit

Permalink
Fix npm install not working
Browse files Browse the repository at this point in the history
  • Loading branch information
fortes committed Jan 25, 2024
1 parent 4f9dbcb commit ad95ce9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/create_local_profile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export IS_HEADLESS="${is_headless:-}"
# Enable if GitHub account has Copilot access
# export ENABLE_GITHUB_COPILOT=1
# Used for `llm` command
# Used for 'llm' command
# export OPENAI_API_KEY="xxxxxx"
# Add machine-specific items below
Expand Down
6 changes: 3 additions & 3 deletions scripts/setup_machine
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ install_apt_packages() {
}

install_node_packages() {
# Pick up `fnm`-provided paths on first run
. "$HOME/.bashrc"

echo "Installing node LTS ... "
fnm install --lts

echo "Setting node version to LTS"
fnm default lts-latest

# Pick up `fnm`-provided paths
eval "$(fnm env)"

echo "Installing global node packages"
grep -v "^#" "$HOME/dotfiles/scripts/node-packages" | xargs --no-run-if-empty \
npm install -g --fund false
Expand Down

0 comments on commit ad95ce9

Please sign in to comment.