Package Details: vue-cli 4.5.11-1

Git Clone URL: https://aur.archlinux.org/vue-cli.git (read-only, click to copy)
Package Base: vue-cli
Description: Standard tooling for Vue.js development
Upstream URL: https://cli.vuejs.org
Licenses: MIT
Conflicts: nodejs-vue-cli, vue
Submitter: flacks
Maintainer: tiberiousr
Last Packager: tiberiousr
Votes: 14
Popularity: 0.165966
First Submitted: 2018-04-23 21:35
Last Updated: 2021-01-24 16:52

Latest Comments

1 2 Next › Last »

WhyNotHugo commented on 2020-12-21 10:05

I can reproduce this on a clean system too. It seems the error is due to changes in how npm in recent releases, since I'm seeing it in multiple packages.

This patch fixes that problem:

diff --git a/PKGBUILD b/PKGBUILD
index fcd798d..f753156 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -23,6 +23,8 @@ noextract=("${source[@]%%::*}")
 sha1sums=('d481d1ef1bb2b92d132958a8920c9db27c24998d')

 package() {
+       install -dm 644 "$pkgdir/usr/lib"
+
   # Setting temporary cache
   npm install -g --user root --cache "$srcdir/npm-cache" --prefix "$pkgdir/usr" "${source[@]%%::*}"

However, the resulting package conflicts with eslint-plugin-vue:

error: failed to commit transaction (conflicting files)
vue-cli: /usr/lib/node_modules/root/.travis.yml exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/LICENSE exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/README.md exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/defaults.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/index.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/.bin/network-address exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/inherits/LICENSE exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/inherits/README.md exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/inherits/inherits.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/inherits/inherits_browser.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/inherits/package.json exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/murl/README.md exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/murl/index.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/murl/package.json exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/murl/tests/index.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/murl/tests/test-match-negative.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/murl/tests/test-match-positive.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/murl/tests/test-match-strict.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/murl/tests/test-match.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/murl/tests/test-replace.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/network-address/README.md exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/network-address/cli.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/network-address/index.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/network-address/package.json exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/protein/README.md exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/protein/example.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/protein/index.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/protein/package.json exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/protein/tests/index.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/protein/tests/test-connect-compatible.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/protein/tests/test-double-mixin.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/protein/tests/test-getters-and-setters.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/protein/tests/test-no-leaks.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/protein/tests/test-prototypical.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/protein/tests/test-simple-request.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/node_modules/protein/tests/test-simple-response.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/package.json exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/tests/index.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/tests/test-body-parsers.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/tests/test-errors.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/tests/test-flow-control.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/tests/test-fork.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/tests/test-match.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/tests/test-matches.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/tests/test-multi-listen.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/tests/test-plugins.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/tests/test-random-port-cluster.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/tests/test-random-port.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/tests/test-rewrite.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/tests/test-route-app.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/tests/test-route.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/tests/test-routes.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/tests/test-sub-app-route.js exists in filesystem (owned by eslint-plugin-vue)
vue-cli: /usr/lib/node_modules/root/tests/test-urls.js exists in filesystem (owned by eslint-plugin-vue)
Errors occurred, no packages were upgraded.

cirk2 commented on 2020-12-19 12:16

I also run unto the ENOENT error witht his package. Both with makepkg and yay.

Creating the /usr/lib dir as first action in package makes it work

  mkdir -p "${pkgdir}"/usr/lib 

tiberiousr commented on 2020-11-13 10:25

@WhyNotHugo

I can't replicate this error. It builds fine on my system with makepkg or yay.

WhyNotHugo commented on 2020-11-13 09:40

Package fails to build:

==> Starting package()...
npm notice
npm notice New patch version of npm available! 7.0.5 -> 7.0.10
npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.0.10
npm notice Run npm install -g npm@7.0.10 to update!
npm notice
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path /home/hugo/.cache/yay/aurdata/vue-cli/pkg/vue-cli/usr
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, lstat '/home/hugo/.cache/yay/aurdata/vue-cli/pkg/vue-cli/usr'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/hugo/.cache/yay/aurdata/vue-cli/src/npm-cache/_logs/2020-11-13T09_36_33_218Z-debug.log
==> ERROR: A failure occurred in package().
    Aborting...

sleeping commented on 2020-09-01 04:26

This package conflicts with the vue package (/usr/bin/vue).

bhyoo commented on 2020-08-01 08:01

How about use yarn for make? yarn is much faster than npm (https://www.positronx.io/yarn-vs-npm-best-package-manager/)

tiberiousr commented on 2020-06-12 10:46

@GFdevelop Thanks for the heads up, I wasn't aware of the guidance on node packages. I've updated the PKGBUILD, bumped the pkgrel, and credited you as a contributor.

I'll do the same for the vue-cli-service-global package and a couple of others.

GFdevelop commented on 2020-06-12 09:25

Package contains reference to $srcdir/$pkgdir

Why you don't follow nodejs packaging guidelines? https://wiki.archlinux.org/index.php/Node.js_package_guidelines

You can see my example https://aur.archlinux.org/packages/angular-cli/

tiberiousr commented on 2019-10-07 08:28

@hexd I've added an AUR package for cli-service-global that depends on this package.

https://aur.archlinux.org/packages/vue-cli-service-global/

hexd commented on 2019-10-06 21:31

Should @vue/cli-service-global be installed by another standalone package in AUR, or should it be part of this package?

$ vue serve

  Command vue serve requires a global addon to be installed.
  Please run yarn global add @vue/cli-service-global and try again.