nova-typescript icon indicating copy to clipboard operation
nova-typescript copied to clipboard

Error: Failed to install: env: npm: No such file or directory

Open jbree opened this issue 3 years ago • 2 comments

I know this bug has been reported a number of times. I'm sharing my experience in case it helps find the root cause, or perhaps just helps another person work around it.

I traced this back to the oh-my-zsh shell configuration manager, specifically with tmux installed, enabled and auto-started.

Here's a minimal .zshrc that, when oh-my-zsh and tmux are installed, causes the nova-typescript extension to throw up the "failed to install" error:

export PATH=$HOME/bin:/usr/local/bin:$PATH
export ZSH="/Users/<user>/.oh-my-zsh"

plugins=(tmux)

ZSH_TMUX_AUTOSTART=true

source $ZSH/oh-my-zsh.sh

jbree avatar Sep 24 '21 04:09 jbree

Yea I seem to get the same message in the console [tsserver] /bin/sh: /usr/local/Cellar/node/17.4.0/bin/npm

the npm directory is /usr/local/bin/npm on my system.

They were installed via brew. surely there is a way to change the path for the extension?

EmranMR avatar Feb 01 '22 19:02 EmranMR

I see this same message as well, with no negative side effects.

apexskier avatar Jun 12 '22 22:06 apexskier