Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

angular-cli 11.2.0 #70635

Closed

Conversation

crunchtime-ali
Copy link
Contributor

action-homebrew-bump-formula


Created with brew bump-formula-pr.

@BrewTestBot BrewTestBot added the nodejs Node or npm use is a significant feature of the PR or issue label Feb 7, 2021
@crunchtime-ali
Copy link
Contributor Author

Please install a compatible version to proceed (npm install --global npm@6).

Shall I just do that?

@chenrui333 chenrui333 added the test failure CI fails while running the test-do block label Feb 8, 2021
@chenrui333
Copy link
Member

Please install a compatible version to proceed (npm install --global npm@6).

Shall I just do that?

yes

@chenrui333
Copy link
Member

npm install fails with NPM 7
angular/angular-cli#19957

@crunchtime-ali
Copy link
Contributor Author

@chenrui333 I tried a few solutions without success:

1. Use the --legacy-peer-deps as described in angular/angular-cli#19957

The installation works with this, but the tests fail due to angular-cli complaining that it requires NPM 6.

brew test angular-cli
==> Testing angular-cli
==> /usr/local/Cellar/angular-cli/11.1.4/bin/ng new angular-homebrew-test --skip-install
Last 15 lines from /Users/azigelsk/Library/Logs/Homebrew/angular-cli/test.01.ng:
2021-02-09 13:44:10 +0100

/usr/local/Cellar/angular-cli/11.1.4/bin/ng
new
angular-homebrew-test
--skip-install

npm version 7.5.0 detected.
The Angular CLI currently requires npm version 6.

Please install a compatible version to proceed (npm install --global npm@6).

Error: angular-cli: failed

2. Install npm@6

system "npm", "install", "--global", *Language::Node.std_npm_install_args(libexec), "npm@6"

This leads to angular-cli not being able to be linked:

Error: The brew link step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/npm
Target /usr/local/bin/npm
already exists. You may want to remove it:
rm '/usr/local/bin/npm'

To force the link and overwrite all conflicting files:
brew link --overwrite angular-cli

To list all files that would be deleted:
brew link --overwrite --dry-run angular-cli

Possible conflicting files are:
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js

@chenrui333 chenrui333 changed the title angular-cli 11.1.4 angular-cli 11.2.0 Feb 13, 2021
@chenrui333 chenrui333 removed the test failure CI fails while running the test-do block label Feb 14, 2021
@BrewTestBot
Copy link
Member

🤖 A scheduled task has triggered a merge.

@BrewTestBot BrewTestBot added the outdated PR was locked due to age label Mar 17, 2021
@Homebrew Homebrew locked as resolved and limited conversation to collaborators Mar 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
nodejs Node or npm use is a significant feature of the PR or issue outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants