Skip to content

npm link not working #3760

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

Closed
trainerbill opened this issue Dec 28, 2016 · 4 comments
Closed

npm link not working #3760

trainerbill opened this issue Dec 28, 2016 · 4 comments

Comments

@trainerbill
Copy link

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Ubuntu

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:
angular-cli: 1.0.0-beta.24
node: 6.4.0
os: linux x64
@angular/flex-layout: 2.0.0-beta.1
@angular/material: 2.0.0-beta.1
@angular/common: 2.4.1
@angular/compiler-cli: 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

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

git clone [email protected]:alxhub/ng2-library.git
cd ng2-library/
npm install
npm run build
npm link
cd ..
ng new clitesting
cd clitesting

import the ng2 library on on app.module.ts

import * as test from 'ng2-library';

The log given by the failure.

Normally this include a stack trace and some more information.

image

Mention any other details that might be useful.

I am assuming this would work with the ng2-library module. My issue is in a different module but this is the easiest to reproduce with steps.


Thanks! We'll be in touch soon.

@hansl
Copy link
Contributor

hansl commented Dec 28, 2016

Did you try npm link ng2-library? This seems like it's a problem with npm, not the CLI.

@hansl hansl closed this as completed Dec 28, 2016
@trainerbill
Copy link
Author

Yeah it still doesnt work. do you have an example that does work to rule out the cli?

@murati
Copy link

murati commented Apr 14, 2017

even if you install dependencies one by one, still huge DI's on them required.

@angular-automatic-lock-bot
Copy link

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 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants