Skip to content

Instantly share code, notes, and snippets.

View Northward-Design's full-sized avatar

Northward-Design

View GitHub Profile
➜ ~ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh
#!/usr/bin/env bash
{ # this ensures the entire script is downloaded #
nvm_has() {
type "$1" > /dev/null 2>&1
}
nvm_default_install_dir() {
➜ ~ echo $0
zsh
➜ ~ cat ~/.zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/ivan/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm ERR! code EEXIST
npm ERR! path /home/ivan/.npm/bin/gulp
npm ERR! EEXIST: file already exists
npm ERR! File exists: /home/ivan/.npm/bin/gulp
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.
npm ERR! A complete log of this run can be found in:
@Northward-Design
Northward-Design / Terminal
Created December 22, 2020 23:34
Cannot use global flag with npm install: ENOENT: No such file
input:
npm install --global gulp-cli
output:
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path /home/ivan/.npm/lib
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, lstat '/home/ivan/.npm/lib'
npm ERR! enoent This is related to npm not being able to find a file.