-
Notifications
You must be signed in to change notification settings - Fork 12k
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
How to install angular-cli locally from a fork on github? #3840
Comments
ng serve is not intended for production use. It's strongly advised to use a security hardened server for production scenarios. |
we are planning to use the build step, updated the command to make it less misleading get the same error with the build command too my guess is, some metadata is not being emitted to the compiler |
Generally, if you're using a fork, you're kind of on your own in terms of troubleshooting. |
@clydin maybe you are right, but if u check #3781 this guy has a very similar error something with the @ngtools/webpack loader .ts file during compilation ps: replacing |
Don't install the CLI from a GitHub branch; it wasn't built that way. Instead, clone it locally and link it ( |
@hansl i am not allowed to install an npm package globally it is in the issue: "The problem is, i am not allowed to install a global package to the production server. That is why i cannot do npm link."I cannot do https://docs.npmjs.com/getting-started/fixing-npm-permissions#option-2-change-npms-default-directory-to-another-directory either. where can i see the require hacks? |
Any update on this? |
Had exactly the same problem - solved it. What I did:
resulting in a structure like this:
worked without any npm link :-) |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Versions.
angular-cli: 1.0.0-beta.24
node: 6.9.2
os: linux x64
@angular/common: 2.4.1
@angular/compiler: 2.4.1
@angular/core: 2.4.1
@angular/forms: 2.4.1
@angular/http: 2.4.1
@angular/platform-browser: 2.4.1
@angular/platform-browser-dynamic: 2.4.1
@angular/router: 3.4.1
@angular/compiler-cli: 2.4.1
@ngtools/webpack: 1.2.1
Repro steps.
The command i am trying to run is:
./node_modules/.bin/ng build --prod
using a fork: https://github.com/TechTeamer/angular-cli which is up to date with master and got these small modifications: master...TechTeamer:master
The project originally was created with angular-cli: 1.0.0-beta.24 installed globally.
This fork functions correct if i do
npm link
steps as stated in the readme. The problem is, i am not allowed to install a global package to the production server. That is why i cannot donpm link
.What i did is:
"angular-cli": "github:techteamer/angular-cli",
@ngtools/webpack
and@angular-cli/base-href-webpack
because those dependecies were somehow resolved internally but not in my case and i got errors that these 2 modules are missingresolve
call the callback function webpack/webpack#3641 issue"webpack": "^2.1.0-beta.25"
(also saw the unmet dependency during installion)and generated those files with the build npm script
ERROR in AppModule is not an NgModule
errorThe log given by the failure.
ping @hansl
The text was updated successfully, but these errors were encountered: