-
Notifications
You must be signed in to change notification settings - Fork 27.4k
grunt with new npm:install has problems on Windows #11143
Comments
if rm fails, we don't want to try to install because npm will almost certainly not install all the files. so you'll see random errors at runtime. can you figure out what needs to be done on windows to make the rm command just work? I don't have easy access to windows nor the required expertise 😞 |
It seems we can't use the rm command because Windows has a stupid 260 char restriction on file paths. It's a wontfix on joyents's side: nodejs/node-v0.x-archive#6960 |
try
|
rimraf doesn't seem to like deleting itself. I get build errors attempting this. I've found success in replacing the rm -rf call in install-dependencies.sh with:
I'm not confident that this is solution in all environments, however. |
Is this any closer to being resolved? It is also impacting my ability to build Angular on Windows. |
+1 |
…oss platforms The previous implementations (based on shell scripts) threw errors on Windows, because it was not able to `rm -rf` 'node_modules' (due to the 255 character limit in file-paths). This implementation works consistently across platforms and is heavily based on 'https://github.com/angular/angular/blob/3b9c08676a4c921bbfa847802e08566fb601ba7a/tools/npm/check-node-modules.js'. Fixes angular#11143 Closes angular#11353
…oss platforms The previous implementations (based on shell scripts) threw errors on Windows, because it was not able to `rm -rf` 'node_modules' (due to the 255 character limit in file-paths). This implementation works consistently across platforms and is heavily based on 'https://github.com/angular/angular/blob/3b9c08676a4c921bbfa847802e08566fb601ba7a/tools/npm/check-node-modules.js'. Fixes angular#11143 Closes angular#11353
…oss platforms The previous implementations (based on shell scripts) threw errors on Windows, because it was not able to `rm -rf` 'node_modules' (due to the 255 character limit in file-paths). This implementation works consistently across platforms and is heavily based on 'https://github.com/angular/angular/blob/3b9c08676a4c921bbfa847802e08566fb601ba7a/tools/npm/check-node-modules.js'. Fixes angular#11143 Closes angular#11353
…oss platforms The previous implementations (based on shell scripts) threw errors on Windows, because it was not able to `rm -rf` 'node_modules' (due to the 255 character limit in file-paths). This implementation works consistently across platforms and is heavily based on 'https://github.com/angular/angular/blob/3b9c08676a4c921bbfa847802e08566fb601ba7a/tools/npm/check-node-modules.js'. Fixes angular#11143 Closes angular#11353
…oss platforms The previous implementations (based on shell scripts) threw errors on Windows, because it was not able to `rm -rf` 'node_modules' (due to the 255 character limit in file-paths). This implementation works consistently across platforms and is heavily based on 'https://github.com/angular/angular/blob/3b9c08676a4c921bbfa847802e08566fb601ba7a/tools/npm/check-node-modules.js'. Fixes #11143 Closes #11353 Closes #12792
…oss platforms The previous implementations (based on shell scripts) threw errors on Windows, because it was not able to `rm -rf` 'node_modules' (due to the 255 character limit in file-paths). This implementation works consistently across platforms and is heavily based on 'https://github.com/angular/angular/blob/3b9c08676a4c921bbfa847802e08566fb601ba7a/tools/npm/check-node-modules.js'. Fixes #11143 Closes #11353 Closes #12792
The new npm install / caching behavior in grunt is causing some issues. Basically, when the new npm-install scripts tries to remove the contents of the node_modules folder I am getting a whole lot of cannot remove : File or Path name too long.
This is the stupid Windows restriction on very long file paths, I think.
Because of this, the following npm install + shrinkwrap copy is never called, so I am ending up with a half empty node_modules folder.
I can empty the node_modules folder manually and call
scripts/npm/install-dependencies.sh
directly and this works, but I'd be running into this problem every time the shrinkwrap changes.Is it possible to delete the contents of node_modules differently?
cc @IgorMinar
The text was updated successfully, but these errors were encountered: