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

Using nativescript@next brings multiple libraries into node_modules #2308

Closed
NickIliev opened this issue Dec 5, 2016 · 3 comments
Closed
Assignees
Labels
Milestone

Comments

@NickIliev
Copy link
Contributor

NickIliev commented Dec 5, 2016

Steps to reproduce:

npm uninstall -g nativescript
npm install -g nativescript@next
tns create myProject --tsc

result:
nodemoudlesnext

On existing project with several plugins, the installed libraries are becoming over 50
and tns run android hangs out

Example:
nodemoudlesnext002

@Plamen5kov
Copy link
Contributor

Plamen5kov commented Dec 8, 2016

I can't reproduce the problem with the latest, @next build. Can you try again and tell me if the problem still persists when you try it? Further more, what npm and node version are you using?

@NickIliev
Copy link
Contributor Author

NickIliev commented Dec 8, 2016

Node,js 6.9.2 (tested also with 6.6.0)
npm 3.10.9 (tested also with 3.10.3)

@Plamen5kov
Copy link
Contributor

This is expected since if the user has npm 3.x installed, cli will use it to do npm install and npm v3.x flattens all dependencies it can on installation.
If the user has npm v2.x installed the modules won't get flattened on installation.

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

4 participants