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

Can not find local addon when using npm link #16

Open
snowyu opened this issue Mar 10, 2018 · 5 comments
Open

Can not find local addon when using npm link #16

snowyu opened this issue Mar 10, 2018 · 5 comments
Labels

Comments

@snowyu
Copy link

snowyu commented Mar 10, 2018

cd generator-ngx-rocket 
npm link
cd ~/my-addon
npm link
ngx list
# no addon here.

Workaround:

cd generator-ngx-rocket 
cd generators
ln -s ~/myaddon/generators/app myaddon
@sinedied
Copy link
Member

sinedied commented Mar 19, 2018

Can you try with this slight change?

cd generator-ngx-rocket 
npm link
cd ~/my-addon
npm link . # add dot here
ngx list

Which OS do you use?

@snowyu
Copy link
Author

snowyu commented Mar 20, 2018

NOT WORK YET.

Distributor ID:	Ubuntu
Description:	Ubuntu 17.10
Release:	17.10
Codename:	artful

@sinedied
Copy link
Member

Ok, I'll try to setup an Ubuntu VM to reproduce it, let me know if you find some clues about why it's not working

@sinedied
Copy link
Member

Just to make sure, does it detect correctly addons installed with npm? For example this one https://www.npmjs.com/package/generator-addon-example

@snowyu
Copy link
Author

snowyu commented Mar 20, 2018

npm i -g generator-addon-example
ngx list
<none>

BTW, I use nvm to manage the nodejs version(in the home dir ~/.nvm/versions).

@sinedied sinedied added the bug label Jun 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants