Questions tagged [zsh]

Zsh, also known as the Z shell, is a versatile Unix shell that functions both as a interactive login shell and a robust command interpreter for scripting in shells.

I made changes to my npm init config and now I am unable to revert it back to its original default settings

I attempted to set a default name in order to avoid typing it repeatedly, but unfortunately, my actions ended up causing issues with the creation of my package.json file. Now, when I execute 'npm init' in a new project, instead of going through the usual p ...

Execute npm and node using ansible

I am facing a challenge with the script execution on a machine that has zsh installed. Here is what I have set up: Software Installed # Install NVM sudo curl https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash ## Reload shell to st ...

The child_process in Node is attempting to utilize /usr/bin/zsh, but unfortunately, it is unable to do so because

Recently, I've been encountering issues with several npm commands failing, accompanied by an error message that looks like this: npm ERR! code ELIFECYCLE npm ERR! syscall spawn /usr/bin/zsh npm ERR! file /usr/bin/zsh npm ERR! path /usr/bin/zsh npm ER ...

Error: Command not recognized for the npm packages that were installed

After successfully installing a npm package locally, I used npm list --depth=0 to confirm its installation. However, when trying to run any command from that package in the terminal, I kept getting the error message: zsh: command not found: <command nam ...

The command for purchasing tickets is not recognized on macOS

Initially, I'm not too savvy with this stuff, but I managed to install something using npm. npm i tickets npm install -g tickets The installation went smoothly and everything seemed to be working fine. However, when I tried to delve into the source ...

Certain relative paths are not functioning properly on macOS 10.15 Catalina beta version (19A471t)

When working with relative paths, I've noticed some peculiar behavior. Take for example: $ cd /Users $ ls -l ../bin ls: ../bin: No such file or directory $ ls -l /bin -r-xr-xr-x 1 root wheel 623344 31 May 08:33 bash -rwxr-xr-x 1 root wheel ...

Challenges with utilizing Node.js on zsh

Recently, I made the switch from the bash shell to zsh while running Ubuntu via WSL. Initially, Node.js was installed and up to date on bash. However, when I tried npm install on a project in zsh, I realized that Node wasn't installed for zsh. Despite my e ...

Having trouble installing NPM Live-server on zsh shell?

As I attempt to globally install live-server using the command: npm install -g live-server, I continue to encounter the following error message; mac@Edozie ~ % npm install -g live-server npm WARN deprecated <a href="/cdn-cgi/l/email-protection" class="_ ...

Guide on programmatically setting up nvm and utilizing npm

Hey there! I've been working on some scripts to customize my shell environment, and everything is going great except for nvm. Here's a snippet from my script: #!/bin/zsh set -Eeuo pipefail echo 'Installing nvm' touch $HOME/.zshrc curl -o- https://raw.git ...