PolymerElements / font-roboto

Loads the Roboto family of fonts from Google Fonts.
5 stars 35 forks source link

npm ERR! enoent ENOENT: no such file or directory, rename #29

Open flatmax opened 5 years ago

flatmax commented 5 years ago

When @polymer/font-roboto is nested inside other element's node_modules npm will fail to install reporting : npm ERR! path element/node_modules/.staging/@polymer/font-roboto-22e51083 npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall rename npm ERR! enoent ENOENT: no such file or directory, rename 'element/node_modules/.staging/@polymer/font-roboto-22e51083' -> 'element2/node_modules/@polymer/font-roboto'

npm i doesn't install correctly and fails to install. The nesting is like so : element2/node_modules/element/node_modules/@polymer/font-roboto The conflict is around : element2/node_modules/@polymer/font-roboto

The current fix is the same as for other nesting issues : https://github.com/Polymer/polymer/issues/5407

Not very elegant, but it works.