Remove --user root

Seems to not be working as expected according to https://bugs.archlinux.org/task/70134
This commit is contained in:
Agustin Carrasco 2021-03-24 21:45:00 -03:00
parent a37809b9b4
commit 2b91d844b7
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
pkgbase = vercel pkgbase = vercel
pkgdesc = The command line interface for Vercel pkgdesc = The command line interface for Vercel
pkgver = 21.3.3 pkgver = 21.3.3
pkgrel = 1 pkgrel = 2
url = https://github.com/vercel/vercel url = https://github.com/vercel/vercel
arch = any arch = any
license = MIT license = MIT

View file

@ -1,6 +1,6 @@
pkgname=vercel pkgname=vercel
pkgver=21.3.3 pkgver=21.3.3
pkgrel=1 pkgrel=2
pkgdesc="The command line interface for Vercel" pkgdesc="The command line interface for Vercel"
arch=(any) arch=(any)
url="https://github.com/vercel/vercel" url="https://github.com/vercel/vercel"
@ -14,7 +14,7 @@ sha256sums=('e2b0d36af7ca06839075a2a8eda6b15087ae9fa9a76c073bfeaeebe4e1e0c71f')
# For more info about this package see: # For more info about this package see:
# https://wiki.archlinux.org/index.php/Node.js_package_guidelines # https://wiki.archlinux.org/index.php/Node.js_package_guidelines
package() { package() {
npm install -g --user root --cache "${srcdir}/npm-cache" --prefix "$pkgdir/usr" "$srcdir/$pkgname-$pkgver.tgz" npm install -g --cache "${srcdir}/npm-cache" --prefix "$pkgdir/usr" "$srcdir/$pkgname-$pkgver.tgz"
# Fix permissions # Fix permissions
find "$pkgdir"/usr -type d -exec chmod 755 {} + find "$pkgdir"/usr -type d -exec chmod 755 {} +