You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The extension executes 'npm root -g' command in order to detect the global node module path.
I'm using nvm to manage Node versions and it adds the following lines to my .bash_profile:
These lines add the directory containing 'node' and 'npm' executables to the PATH. In my case (Ubuntu 22.04, bash 5.1.16(1)-release) .bashrc won't be executed from a non-interactive shell (i.e. one started without '-i' flag). So when yeoman-ui executes npm, it is not on the PATH, and the command fails resulting in a promise that never resolves. The extension remains semi-initialized forever, showing an empty page instead of the template wizard
The extension executes 'npm root -g' command in order to detect the global node module path.
I'm using nvm to manage Node versions and it adds the following lines to my .bash_profile:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This loads nvm bash_completion
These lines add the directory containing 'node' and 'npm' executables to the PATH. In my case (Ubuntu 22.04, bash 5.1.16(1)-release) .bashrc won't be executed from a non-interactive shell (i.e. one started without '-i' flag). So when yeoman-ui executes npm, it is not on the PATH, and the command fails resulting in a promise that never resolves. The extension remains semi-initialized forever, showing an empty page instead of the template wizard
A similar issue is discussed in this SO queston: https://stackoverflow.com/questions/51000556/npm-command-not-found-in-visual-studio-code
The text was updated successfully, but these errors were encountered: