Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

Glyphicons folder laravel

Pessoal,

No meu projeto os ícones do Glyphicons não estão funcionando. Acredito que minha dúvida esteja muito perto da dúvida https://www.alura.com.br/course/laravel/discussions/670074

Também uso Ubuntu 14.04 e executei o comando recomendado:

npm install -g bower bowe init /home/klebercarvalho/Alura/PHP/Laravel/estoque bower install bootstrap

Mas dá o seguinte erro:

npm http GET https://registry.npmjs.org/init npm http GET https://registry.npmjs.org/install npm http GET https://registry.npmjs.org/bowe npm ERR! addLocal Could not install /home/klebercarvalho/Alura/PHP/Laravel/estoque npm ERR! Error: No name provided npm ERR! at needName (/usr/share/npm/lib/cache.js:1232:37) npm ERR! at /usr/share/npm/lib/cache.js:1111:10 npm ERR! at /usr/lib/nodejs/read-package-json/read-json.js:50:40 npm ERR! at final (/usr/lib/nodejs/read-package-json/read-json.js:317:17) npm ERR! at then (/usr/lib/nodejs/read-package-json/read-json.js:124:33) npm ERR! at /usr/lib/nodejs/read-package-json/read-json.js:234:40 npm ERR! at fs.js:268:14 npm ERR! at /usr/lib/nodejs/graceful-fs/graceful-fs.js:103:5 npm ERR! at Object.oncomplete (fs.js:107:15) npm ERR! If you need help, you may report this log at: npm ERR! http://github.com/isaacs/npm/issues npm ERR! or email it to: npm ERR! npm-@googlegroups.com

npm ERR! System Linux 3.13.0-67-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "bower" "bowe" "init" "/home/klebercarvalho/Alura/PHP/Laravel/estoque" "bower" "install" "bootstrap" npm ERR! cwd /home/klebercarvalho/Alura/PHP/Laravel/estoque npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.10 npm http GET https://registry.npmjs.org/bootstrap npm http GET https://registry.npmjs.org/bower npm http 304 https://registry.npmjs.org/init npm http 404 https://registry.npmjs.org/bowe npm ERR! TypeError: Cannot read property 'latest' of undefined npm ERR! at next (/usr/share/npm/lib/cache.js:687:35) npm ERR! at /usr/share/npm/lib/cache.js:675:5 npm ERR! at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:142:7) npm ERR! at /usr/lib/nodejs/graceful-fs/polyfills.js:133:7 npm ERR! at Object.oncomplete (fs.js:107:15) npm ERR! If you need help, you may report this log at: npm ERR! http://github.com/isaacs/npm/issues npm ERR! or email it to: npm ERR! npm-@googlegroups.com

npm ERR! System Linux 3.13.0-67-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "bower" "bowe" "init" "/home/klebercarvalho/Alura/PHP/Laravel/estoque" "bower" "install" "bootstrap" npm ERR! cwd /home/klebercarvalho/Alura/PHP/Laravel/estoque npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.10 npm ERR! type non_object_property_load npm http 304 https://registry.npmjs.org/install npm http 200 https://registry.npmjs.org/bootstrap npm http 200 https://registry.npmjs.org/bower npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/klebercarvalho/Alura/PHP/Laravel/estoque/npm-debug.log npm ERR! not ok code 0

Como eu poderia copia esse ícones para o projeto?

Achei esse mesmo problema aqui: http://stackoverflow.com/questions/28518513/boostrap-glyphicons-not-working-with-out-of-the-box-laravel-5

Obrigado

2 respostas
solução!

Kleber, ocorreu o mesmo comigo, ai simplesmente exclui os arquivos css esses arquivos (o css do pacote scaffold) e instalei o bootstrap manualmente, fui no getbootstrap.com, baixei e movi a pasta bootstrap para onde ficava o app.css, alterei a tag para o path do novo arquivo de estilos(o bootstrap.min.css) e funcionou.

Obrigado