Nx: A problem when installing other npm packages.

Created on 12 Jan 2018  Â·  3Comments  Â·  Source: nrwl/nx

Whenever I am installing anything, I am loosing almost everything: _"added 1 package and removed 1073 packages"_

Windows 10.

e:\Projekty\c2_javascript\TPTI-nrwl\tpti-workspace>npm install primeng --save
npm WARN rm not removing e:\Projekty\c2_javascript\TPTI-nrwl\tpti-workspace\node_modules.bin\webdriver-manager.cmd as it wasn't installed by e:\Projekty\c2_javascript\TPTI-nrwl\tpti-workspace\node_modules\protractor
npm WARN rm not removing e:\Projekty\c2_javascript\TPTI-nrwl\tpti-workspace\node_modules.bin\webdriver-manager as it wasn't installed by e:\Projekty\c2_javascript\TPTI-nrwl\tpti-workspace\node_modules\protractor
npm WARN rm not removing e:\Projekty\c2_javascript\TPTI-nrwl\tpti-workspace\node_modules.bin\uglifyjs.cmd as it wasn't installed by e:\Projekty\c2_javascript\TPTI-nrwl\tpti-workspace\node_modules\uglify-js
npm WARN rm not removing e:\Projekty\c2_javascript\TPTI-nrwl\tpti-workspace\node_modules.bin\uglifyjs as it wasn't installed by e:\Projekty\c2_javascript\TPTI-nrwl\tpti-workspace\node_modules\uglify-js
npm WARN rm not removing e:\Projekty\c2_javascript\TPTI-nrwl\tpti-workspace\node_modules.bin\semver.cmd as it wasn't installed by e:\Projekty\c2_javascript\TPTI-nrwl\tpti-workspace\node_modules\semver
npm WARN rm not removing e:\Projekty\c2_javascript\TPTI-nrwl\tpti-workspace\node_modules.bin\semver as it wasn't installed by e:\Projekty\c2_javascript\TPTI-nrwl\tpti-workspace\node_modules\semver
npm WARN rm not removing e:\Projekty\c2_javascript\TPTI-nrwl\tpti-workspace\node_modules.bin\nopt.cmd as it wasn't installed by e:\Projekty\c2_javascript\TPTI-nrwl\tpti-workspace\node_modules\nopt
npm WARN rm not removing e:\Projekty\c2_javascript\TPTI-nrwl\tpti-workspace\node_modules.bin\nopt as it wasn't installed by e:\Projekty\c2_javascript\TPTI-nrwl\tpti-workspace\node_modules\nopt
npm notice created a lockfile as package-lock.json. You should commit this file.

repro needed bug

Most helpful comment

Were you able to figure it out? cause i have surfed through all the internet and no solution
i am having the exact same problem @vsavkin

All 3 comments

Nx doesn't do anything special with node_modules, so very likely this is an issue with you local env. Have you try to use a different version of npm (via nvm-windows) or yarn?

Thanks for the response.

I am giving up.

I thought it is because I am on Windows. So I tried to install angular/cli
into docker.

No success.

I made about 20 attempts with ubuntu, debian, a node docker image and some
other docker images claiming angular is running there.

All those ALWAYS end with some error. Missing this and that, no
permissions, wrong directories... whatever.

Giving up.

Thank you.

2018-01-21 23:56 GMT+01:00 Victor Savkin notifications@github.com:

Nx doesn't do anything special with node_modules, so very likely this is
an issue with you local env. Have you try to use a different version of npm
(via nvm-windows) or yarn?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/nrwl/nx/issues/202#issuecomment-359289160, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAGrUeGYtzM1V01lBc6Wv2RPKlMpvULGks5tM8CrgaJpZM4RcWrM
.

--
Best regards,

Bohuslav Svancara

Were you able to figure it out? cause i have surfed through all the internet and no solution
i am having the exact same problem @vsavkin

Was this page helpful?
0 / 5 - 0 ratings