Can't install yarn or gulp via npm
I have npm version 10.2.3. I tried running the following commands:
npm install --global yarn
npm install --global gulp-cli
But when I check the versions to see if yarn or gulp has been installed, I get:
zsh: command not found: yarn
zsh: command not found: gulp
Not sure what I'm doing wrong. (P.S. I have a macbook. I have installed the latest version of Nodejs. And, I am running these commands from within the tools/ directory of my chosen theme, which is demo#23.)
Replies (3)
Glad you have solved it! Sorry for the delay in responding. If you have any more questions, feel free to ask for assistance.
I figured it out. My yarn binary was not being located by my shell properly. I had to add the following line to my ~/.zshrc file, replacing <npm-global-path> with the actual path:
export PATH="<npm-global-path>/bin:$PATH"