Package Details: angular-cli 19.0.2-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: sodaplayer
Last Packager: sodaplayer
Votes: 27
Popularity: 0.000000
First Submitted: 2016-12-22 12:58 (UTC)
Last Updated: 2024-11-27 15:54 (UTC)

Dependencies (1)

Required by (3)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

hsantanna commented on 2020-12-10 18:46 (UTC)

@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 (UTC)

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

hsantanna commented on 2020-12-07 23:14 (UTC)

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 (UTC)

Thanks, working again!

GFdevelop commented on 2020-02-19 13:45 (UTC)

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 (UTC)

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 (UTC)

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

GFdevelop commented on 2020-02-13 01:10 (UTC)

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 (UTC)

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

wpd commented on 2019-03-31 14:19 (UTC)

@BrLi @MazeChaZer I adopted this since it was an orphan. Please let me know if you want the ownership back, I'm happy to cede control.