Package Details: angular-cli 11.2.0-1

Git Clone URL: https://aur.archlinux.org/angular-cli.git (read-only, click to copy)
Package Base: angular-cli
Description: CLI tool for Angular
Upstream URL: https://github.com/angular/angular-cli
Keywords: angular angular-cli cli
Licenses: MIT
Submitter: MazeChaZer
Maintainer: wpd (GFdevelop)
Last Packager: GFdevelop
Votes: 26
Popularity: 0.79
First Submitted: 2016-12-22 12:58
Last Updated: 2021-02-13 12:16

Dependencies (1)

Required by (1)

Sources (1)

Latest Comments

1 2 Next › Last »

GFdevelop commented on 2020-12-10 19:02

I am happy that you have solved your problem...thanks to having share your debug info with the community, can be usefull.

hsantanna commented on 2020-12-10 18:46

@GFdevelop thanks for replying.

I'm using zsh, but since you mentioned I tested with bash too. I'm using picaur as aur helper, so tested with manually download and build, getting the same error, no matter what.

So I payed more attention to the error message and realized that somewhere in my PATH there was an :: (doubled colons). There was something wrong in my ~/.pam_environment and correcting that solved the problem.

Thank you.

GFdevelop commented on 2020-12-07 23:22

@hsantanna step to reproduce? Are you using an aur helper? What is your shell?

hsantanna commented on 2020-12-07 23:14

I'm getting this error:

+ @angular/cli@11.0.2
added 253 packages from 201 contributors in 29.821s
find: The current directory is included in the PATH environment variable, which is insecure in combination with the -execdir action of find.  Please remove the current directory from your $PATH (that is, remove ".", doubled colons, or leading or trailing colons)
==> ERROR: A failure occurred in package().
    Aborting...

Command 'makepkg --force' failed to execute.

Can't build 'angular-cli'.

Failed to build following packages:
angular-cli

I couldn't solve that.

sflor commented on 2020-02-20 10:10

Thanks, working again!

GFdevelop commented on 2020-02-19 13:45

I'm sorry, I will search for this tomorrow (I am traveling today)...can you try to comment the line 34 of PKGBUILD? If this don't solve the problem then can be an error of npm/nodejs...

sflor commented on 2020-02-19 13:33

9.0.2 (not sure if 9.0.1) isn't working for me:

$ ng serve
internal/modules/cjs/loader.js:268
    throw e;
    ^

SyntaxError: Error parsing /usr/lib/node_modules/@angular/cli/package.json: Unexpected token } in JSON at position 443

wpd commented on 2020-02-15 16:28

@GFdevelop Your changes look fine to me. Added you as a co-maintainer :)

GFdevelop commented on 2020-02-13 01:10

I want to suggest some changes based on archwiki https://wiki.archlinux.org/index.php/Node.js_package_guidelines

package() {

    _npmscope=@angular
    _npmname=cli
    _npmver=$pkgver

    # Setting temporary cache
    npm install -g --user root --cache "${srcdir}/npm-cache" --prefix "$pkgdir/usr" $_npmscope/$_npmname@$_npmver
    # Non-deterministic race in npm gives 777 permissions to random directories.
    # See https://github.com/npm/npm/issues/9359 for details.
    find "${pkgdir}"/usr -type d -exec chmod 755 {} +

    # npm gives ownership of ALL FILES to build user
    # https://bugs.archlinux.org/task/63396
    chown -R root:root $pkgdir

    # Package contains reference to $srcdir/$pkgdir
    find "${pkgdir}" -type f -name package.json -exec sed -i -e '/_where/d' {} \;
    sed -i "s|$pkgdir||" "$pkgdir"/usr/lib/node_modules/@angular/cli/node_modules/sshpk/package.json
}

MazeChaZer commented on 2019-04-05 05:23

@wpd It's allright, thanks for maintaining the package :)