Package Details: angular-cli 14.1.1-1

Git Clone URL: (read-only, click to copy)
Package Base: angular-cli
Description: CLI tool for Angular
Upstream URL:
Keywords: angular angular-cli cli
Licenses: MIT
Submitter: MazeChaZer
Maintainer: GFdevelop
Last Packager: GFdevelop
Votes: 28
Popularity: 0.37
First Submitted: 2016-12-22 12:58 (UTC)
Last Updated: 2022-08-08 11:16 (UTC)

Dependencies (1)

Required by (2)

Sources (1)

Latest Comments

mcw commented on 2021-03-27 12:41 (UTC)

Everything's golden (in regards to the conflicts).

Thank you!

GFdevelop commented on 2021-03-27 11:30 (UTC)

I'm sorry for the issues, now work again, can you confirm?

mcw commented on 2021-03-24 12:01 (UTC)

The updates to the semver package remove conflict and render this package installable again.

I assume the same changes should be made to this package to prevent this from happening in the future.

totemfallico commented on 2021-03-24 09:37 (UTC)

If you updated but you can't run ng serve, just use npm start as a temporary workaround of the "Unknown error: TypeError: Cannot read property 'split' of undefined" error.

gdamjan commented on 2021-03-23 21:33 (UTC)

The issue with the conflict on the "root" node module is because, npm obviously removed the --user root option, and now it installs the root package.

I bet the semver package has the same issue…


mcw commented on 2021-03-23 12:11 (UTC) (edited on 2021-03-23 12:11 (UTC) by mcw)

The latest version of this package is not installable. It conflicts with the package semver, which is needed by npm, which is needed to install the package.

(1/1) checking for file conflicts                                                          [##################################################] 100%
error: failed to commit transaction (conflicting files)
angular-cli: /usr/lib/node_modules/root/.travis.yml exists in filesystem     (owned by semver)
angular-cli: /usr/lib/node_modules/root/LICENSE exists in filesystem (owned by semver)
angular-cli: /usr/lib/node_modules/root/ exists in filesystem (owned by semver)
angular-cli: /usr/lib/node_modules/root/defaults.js exists in filesystem     (owned by semver)
angular-cli: /usr/lib/node_modules/root/index.js exists in filesystem (owned by semver)

GFdevelop commented on 2021-03-22 11:25 (UTC)

@freed00m you are right, I'm searching for this...

freed00m commented on 2021-03-21 17:18 (UTC)

I have trouble running it, some missing dependencies?

% ng new
Unknown error: TypeError: Cannot read property 'split' of undefined

GFdevelop commented on 2020-12-10 19:02 (UTC)

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

Command 'makepkg --force' failed to execute.

Can't build 'angular-cli'.

Failed to build following packages:

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
    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

package() {


    # 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 for details.
    find "${pkgdir}"/usr -type d -exec chmod 755 {} +

    # npm gives ownership of ALL FILES to build user
    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.

beiranvand.karim commented on 2019-02-16 10:13 (UTC)

please update the repository

TheDarkula commented on 2018-10-25 15:49 (UTC)

I made a gist for the current version if anyone wants it:

greyltc commented on 2018-06-15 08:06 (UTC)

The latest release is 6.0.7:

z3ntu commented on 2017-09-12 07:39 (UTC)

Any reason why several folders eg /usr/lib/node_modules/@angular/cli/node_modules/send/node_modules/ have the mode 777?

Sacro commented on 2017-05-04 13:42 (UTC)

If you want an RC version then create angular-cli-rc or something.

seglberg commented on 2017-03-15 01:20 (UTC)

Any chance of getting this updated to an RC version?

MazeChaZer commented on 2017-02-20 13:54 (UTC)

When trying to use the @angular/cli package a few days ago, I got into a strange problem of a missing dependency. I will look into it soon.

MazeChaZer commented on 2017-02-06 15:49 (UTC)

Although the latest git tag in GitHub is beta.30, the latest published package on npm is beta.28.3. I already noticed earlier, that these seem not to be in sync. I will update to the newest version published on npm.