惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
云风的 BLOG
云风的 BLOG
小众软件
小众软件
IT之家
IT之家
T
Tailwind CSS Blog
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
美团技术团队
博客园 - 叶小钗
V
V2EX
博客园 - Franky
大猫的无限游戏
大猫的无限游戏
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
阮一峰的网络日志
阮一峰的网络日志
博客园 - 【当耐特】
罗磊的独立博客
博客园_首页
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
爱范儿
爱范儿
宝玉的分享
宝玉的分享
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Jina AI
Jina AI
月光博客
月光博客
有赞技术团队
有赞技术团队

AUR Newest Packages

AUR (en) - linuxqq-clipsync-git AUR (en) - libtslitex-git AUR (en) - libtslitex-git AUR (en) - carton-appimage AUR (en) - veila-git AUR (en) - veila-bin AUR (en) - vigil-baseline AUR (en) - byedroid AUR (en) - neovim-base16-git AUR (en) - pirata AUR (en) - rpi-imager-git-non-root AUR (en) - python-fastapi-sso AUR (en) - tmux-ai-titles AUR (en) - zeed-bin AUR (en) - bclone-bin AUR (en) - dwl-git-azerty AUR (en) - auggie-bin AUR (en) - libspatialaudio-git AUR (en) - libspatialaudio AUR (en) - miniupnpd-iptables-legacy AUR (en) - miniupnpd-nft AUR (en) - jeeves-bin AUR (en) - opennow AUR (en) - rotki AUR (en) - kapi-bin AUR (en) - classfi-bin AUR (en) - classfi-git AUR (en) - classfi AUR (en) - giff-git AUR (en) - budget-tracker-bin
AUR (en) - eslint-plugin-vue
2026-06-14 · via AUR Newest Packages

Latest Comments

whynothugo commented on 2021-03-24 11:43 (UTC)

@christoph.gysin That still tries to install files that conflict with eslint:

eslint-plugin-vue: /usr/lib/node_modules/eslint/package.json exists in filesystem (owned by eslint)

(That one and dozens others)

@rkcf Are you still maintaining this? I can adopt it if not; it's been broken since last year.

christoph.gysin commented on 2021-03-24 07:35 (UTC)

Please remove --user root to avoid installing the root npm module

whynothugo commented on 2020-12-21 09:48 (UTC)

This diff fixes the package so that it does not conflict with eslint. Also creates missing directories during build:

diff --git a/PKGBUILD b/PKGBUILD
index 1fc1a6e..9613a7d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,11 +14,16 @@ md5sums=('6c5a3f99efffe1390194abf49f24b55b')
 noextract=($pkgname-$pkgver.tgz)

 package() {
-       npm install --verbose -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+       install -dm 755 "$pkgdir/usr/lib"
+       npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz

        # Fix permissions
        find "$pkgdir/usr" -type d -exec chmod 755 '{}' +

+       # Remove files that conflict with `eslint`:
+       rm -rf "$pkgdir/usr/lib/node_modules/eslint/"
+       rm -rf "$pkgdir/usr/bin/eslint"
+
        install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
        ln -s ../../../lib/node_modules/$pkgname/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }

whynothugo commented on 2020-12-21 09:34 (UTC)

Installing this package fails, since it also includes eslint:

eslint-plugin-vue: /usr/lib/node_modules/eslint/node_modules/word-wrap/LICENSE exists in filesystem (owned by eslint)
eslint-plugin-vue: /usr/lib/node_modules/eslint/node_modules/word-wrap/README.md exists in filesystem (owned by eslint)
eslint-plugin-vue: /usr/lib/node_modules/eslint/node_modules/word-wrap/index.d.ts exists in filesystem (owned by eslint)
eslint-plugin-vue: /usr/lib/node_modules/eslint/node_modules/word-wrap/index.js exists in filesystem (owned by eslint)
eslint-plugin-vue: /usr/lib/node_modules/eslint/node_modules/word-wrap/package.json exists in filesystem (owned by eslint)
eslint-plugin-vue: /usr/lib/node_modules/eslint/node_modules/wrappy/LICENSE exists in filesystem (owned by eslint)
eslint-plugin-vue: /usr/lib/node_modules/eslint/node_modules/wrappy/README.md exists in filesystem (owned by eslint)
eslint-plugin-vue: /usr/lib/node_modules/eslint/node_modules/wrappy/package.json exists in filesystem (owned by eslint)
eslint-plugin-vue: /usr/lib/node_modules/eslint/node_modules/wrappy/wrappy.js exists in filesystem (owned by eslint)
eslint-plugin-vue: /usr/lib/node_modules/eslint/node_modules/yallist/LICENSE exists in filesystem (owned by eslint)
eslint-plugin-vue: /usr/lib/node_modules/eslint/node_modules/yallist/README.md exists in filesystem (owned by eslint)
eslint-plugin-vue: /usr/lib/node_modules/eslint/node_modules/yallist/iterator.js exists in filesystem (owned by eslint)
eslint-plugin-vue: /usr/lib/node_modules/eslint/node_modules/yallist/package.json exists in filesystem (owned by eslint)
eslint-plugin-vue: /usr/lib/node_modules/eslint/node_modules/yallist/yallist.js exists in filesystem (owned by eslint)
eslint-plugin-vue: /usr/lib/node_modules/eslint/package.json exists in filesystem (owned by eslint)

whynothugo commented on 2020-11-22 21:52 (UTC) (edited on 2020-11-22 21:53 (UTC) by whynothugo)

I'm getting this error when building. Any hints?

npm timing idealTree:node_modules/eslint/node_modules/string-width/node_modules/ansi-regex Completed in 0ms
npm timing idealTree:buildDeps Completed in 2768ms
npm timing idealTree:fixDepFlags Completed in 3ms
npm timing idealTree Completed in 2888ms
npm timing command:install Completed in 2892ms
npm verb stack Error: ENOENT: no such file or directory, lstat '/home/hugo/tmp/eslint-plugin-vue/pkg/eslint-plugin-vue/usr'
npm verb cwd /home/hugo/tmp/eslint-plugin-vue/src
npm verb Linux 5.9.8-arch1-1
npm verb argv "/usr/bin/node" "/usr/bin/npm" "install" "--verbose" "-g" "--user" "root" "--prefix" "/home/hugo/tmp/eslint-plugin-vue/pkg/eslint-plugin-vue/usr" "/home/hugo/tmp/eslint-plugin-vue/src/eslint-plugin-vue-7.1.0.tgz"
npm verb node v15.2.1
npm verb npm  v7.0.5
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path /home/hugo/tmp/eslint-plugin-vue/pkg/eslint-plugin-vue/usr
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, lstat '/home/hugo/tmp/eslint-plugin-vue/pkg/eslint-plugin-vue/usr'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm verb exit -2
npm timing npm Completed in 3094ms

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/hugo/.npm/_logs/2020-11-22T21_53_02_890Z-debug.log
==> ERROR: A failure occurred in package().

Edit: Output of using makepkg rather than yay.