npm i -g install to ~/.local/bin (#1295)

This commit is contained in:
Max Howell 2023-04-08 10:37:00 -04:00 committed by GitHub
parent 24e9d7c31a
commit 1caf64aeca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 5 deletions

2
projects/npmjs.com/npmrc Normal file
View file

@ -0,0 +1,2 @@
prefix = ${HOME}/.local
update_notifier = false

View file

@ -12,10 +12,6 @@ provides:
dependencies:
nodejs.org: '>=14'
runtime:
env:
NPM_CONFIG_UPDATE_NOTIFIER: false
build:
dependencies:
crates.io/semverator: '*'
@ -26,4 +22,10 @@ build:
node . install --global --prefix={{prefix}} $ARGS
test: npx -q tldr ls
mv props/npmrc {{prefix}}/lib/node_modules/npm
test: |
npm install --global cowsay
$HOME/.local/bin/cowsay xyz.tea.hi
npx -qy tldr ls