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

Missing steps to build angular #12443

Closed
gary-b opened this issue Oct 21, 2016 · 3 comments
Closed

Missing steps to build angular #12443

gary-b opened this issue Oct 21, 2016 · 3 comments
Labels
area: build & ci Related the build and CI infrastructure of the project freq1: low type: bug/fix
Milestone

Comments

@gary-b
Copy link
Contributor

gary-b commented Oct 21, 2016

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request

Current behavior
There are additional steps required to build angular not included in the developer guide, some of which could be scripted.

a) On Windows / Linux npm install will fail because fsevents requires a mac.

b) On Windows build.sh fails because it tries to create a symlink to the polymer directory and it doesn't exist. This is because the dependency is managed by bower, and bower install is never ran. (The script does not fail on Linux when the directory is missing.)

Expected behavior
I'm planning to submit a PR to:

  1. Provide a script to remove the fsevents dependency when not on a mac and update dev guide to advise running it. (Better solutions welcome...)
  2. Have bower install run automatically when npm install is ran (using the packages.json postinstall step).

Minimal reproduction of the problem with instructions
Install and build on Windows following guide

What is the motivation / use case for changing the behavior?
Make life easier for us noobs.

Please tell us about your environment:
Windows 10, Node v5.12.0, NPM v3.10.8, Bower v1.7.9
LUbuntu 16, Node v5.12.0, NPM 3.10.9

  • Angular version: 2.0.X
    Angular master
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
    N/A
  • Language: [all | TypeScript X.X | ES6/7 | ES5]
    N/A
  • Node (for AoT issues): node --version =
    v5.12.0
gary-b added a commit to gary-b/angular that referenced this issue Oct 21, 2016
The fsevents package is required when building on Mac, but will cause
npm install to fail when building on Windows or Linux. This script
removes the dependency from package.json and shrinkwrap.json. The
developer guide has also been updated.

Partially closes angular#12443
gary-b added a commit to gary-b/angular that referenced this issue Oct 21, 2016
The Polymer dependency is managed by bower, yet the developer guide did
not specify to run bower install. This caused the build.sh script to
fail when setting up symlinks on Windows. Now we run bower install as a
postinstall step when npm install is ran.

Partially closes angular#12443
gary-b added a commit to gary-b/angular that referenced this issue Oct 21, 2016
The fsevents package is required when building on Mac, but will cause
npm install to fail when building on Windows or Linux. The new script
removes the dependency from package.json and shrinkwrap.json. The update
to developer.md advises of its usage.

Partially closes angular#12443
gary-b added a commit to gary-b/angular that referenced this issue Oct 21, 2016
The Polymer dependency is managed by bower, yet the developer guide did
not specify to run bower install. This caused the build.sh script to
fail when setting up symlinks on Windows. Now we run bower install as a
postinstall step when npm install is ran.

Partially closes angular#12443
gary-b added a commit to gary-b/angular that referenced this issue Oct 21, 2016
The fsevents package is required when building on Mac, but will cause
npm install to fail when building on Windows or Linux. The new script
removes the dependency from package.json and shrinkwrap.json. The update
to developer.md advises of its usage.

Partially closes angular#12443
gary-b added a commit to gary-b/angular that referenced this issue Oct 21, 2016
The Polymer dependency is managed by bower, yet the developer guide did
not specify to run bower install. This caused the build.sh script to
fail when setting up symlinks on Windows. Now we run bower install as a
postinstall step when npm install is ran.

Partially closes angular#12443
gary-b added a commit to gary-b/angular that referenced this issue Oct 21, 2016
The fsevents package is required when building on Mac, but will cause
npm install to fail when building on Windows or Linux. The new script
removes the dependency from package.json and shrinkwrap.json. The update
to developer.md advises of its usage.

Partially closes angular#12443
gary-b added a commit to gary-b/angular that referenced this issue Oct 21, 2016
The Polymer dependency is managed by bower, yet the developer guide did
not specify to run bower install. This caused the build.sh script to
fail when setting up symlinks on Windows. Now we run bower install as a
postinstall step when npm install is ran.

Partially closes angular#12443
@pkozlowski-opensource pkozlowski-opensource added the area: build & ci Related the build and CI infrastructure of the project label Oct 22, 2016
gary-b added a commit to gary-b/angular that referenced this issue Oct 23, 2016
The fsevents package is required when building on Mac, but will cause
npm install to fail when building on Windows or Linux. The new script
removes the dependency from package.json and shrinkwrap.json. The update
to developer.md advises of its usage.

Partially closes angular#12443
gary-b added a commit to gary-b/angular that referenced this issue Oct 23, 2016
The Polymer dependency is managed by bower, yet the developer guide did
not specify to run bower install. This caused the build.sh script to
fail when setting up symlinks on Windows. Now we run bower install as a
postinstall step when npm install is ran.

Partially closes angular#12443
gary-b added a commit to gary-b/angular that referenced this issue Oct 23, 2016
The fsevents package is required when building on Mac, but will cause
npm install to fail when building on Windows or Linux. The new script
removes the dependency from package.json and shrinkwrap.json. The update
to developer.md advises of its usage.

Partially closes angular#12443
gary-b added a commit to gary-b/angular that referenced this issue Oct 23, 2016
The Polymer dependency is managed by bower, yet the developer guide did
not specify to run bower install. This caused the build.sh script to
fail when setting up symlinks on Windows. Now we run bower install as a
postinstall step when npm install is ran.

Partially closes angular#12443
@e-cloud
Copy link

e-cloud commented Nov 23, 2016

it's not necessary to have a script to change the npm-shrinkwrap.json.

You can run npm i -f to force installation.

Nevertheless, the bower part is worthy. But you dont have to refer the bin path, because npm run script automatically add the bin path to PATH

@gkalpak
Copy link
Member

gkalpak commented Mar 27, 2019

This is now obsolete, as we have moved to a different build toolchain.
(There might still be issues with building on Windows, which we are working on, but the problems mentioned here should not be relevant any more.)

@gkalpak gkalpak closed this as completed Mar 27, 2019
@angular-automatic-lock-bot
Copy link

angular-automatic-lock-bot bot commented Sep 14, 2019

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: build & ci Related the build and CI infrastructure of the project freq1: low type: bug/fix
Projects
None yet
Development

No branches or pull requests

5 participants