{"id":355,"date":"2019-01-28T15:46:36","date_gmt":"2019-01-28T18:46:36","guid":{"rendered":"http:\/\/www.ctasoftware.com.br\/blog\/?p=355"},"modified":"2019-01-28T15:47:22","modified_gmt":"2019-01-28T18:47:22","slug":"limpar-cache-npm","status":"publish","type":"post","link":"https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/","title":{"rendered":"Limpar Cache NPM"},"content":{"rendered":"\n<p>Por vezes o NPM acumula cache e d\u00e1 erros como &#8220;npm ERR! Unexpected end of JSON input while parsing near&#8221;. Ideal limpar o cache e executar novamente o mesmo comando.<\/p>\n\n\n\n<p>Comando Clear Cache<\/p>\n\n\n\n<p>\n\nnpm cache clean &#8211;force\n\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Por vezes o NPM acumula cache e d\u00e1 erros como &#8220;npm ERR! Unexpected end of JSON input while parsing near&#8221;. Ideal limpar o cache e executar novamente o mesmo comando. Comando Clear Cache npm cache clean &#8211;force<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[98],"tags":[116],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Limpar Cache NPM - CTASoftware Blog<\/title>\n<meta name=\"description\" content=\"CTASoftware Blog Limpar Cache NPM\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Limpar Cache NPM - CTASoftware Blog\" \/>\n<meta property=\"og:description\" content=\"CTASoftware Blog Limpar Cache NPM\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/\" \/>\n<meta property=\"og:site_name\" content=\"CTASoftware Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-28T18:46:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-01-28T18:47:22+00:00\" \/>\n<meta name=\"author\" content=\"Everton Gon\u00e7alves\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Everton Gon\u00e7alves\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/\"},\"author\":{\"name\":\"Everton Gon\u00e7alves\",\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/#\/schema\/person\/34f7fa2c76834d8410f6dd43e26fd3e4\"},\"headline\":\"Limpar Cache NPM\",\"datePublished\":\"2019-01-28T18:46:36+00:00\",\"dateModified\":\"2019-01-28T18:47:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/\"},\"wordCount\":40,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/#organization\"},\"keywords\":[\"typescript\"],\"articleSection\":[\"IONIC\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/\",\"url\":\"https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/\",\"name\":\"Limpar Cache NPM - CTASoftware Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/#website\"},\"datePublished\":\"2019-01-28T18:46:36+00:00\",\"dateModified\":\"2019-01-28T18:47:22+00:00\",\"description\":\"CTASoftware Blog Limpar Cache NPM\",\"breadcrumb\":{\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/www.ctasoftware.com.br\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Limpar Cache NPM\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/#website\",\"url\":\"https:\/\/www.ctasoftware.com.br\/blog\/\",\"name\":\"CTASoftware Blog\",\"description\":\"Para Desenvolvedores De Software\",\"publisher\":{\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.ctasoftware.com.br\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/#organization\",\"name\":\"CTASoftware\",\"url\":\"https:\/\/www.ctasoftware.com.br\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.ctasoftware.com.br\/blog\/wp-content\/uploads\/2023\/06\/logocta.png?fit=225%2C44&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.ctasoftware.com.br\/blog\/wp-content\/uploads\/2023\/06\/logocta.png?fit=225%2C44&ssl=1\",\"width\":225,\"height\":44,\"caption\":\"CTASoftware\"},\"image\":{\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/#\/schema\/person\/34f7fa2c76834d8410f6dd43e26fd3e4\",\"name\":\"Everton Gon\u00e7alves\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.ctasoftware.com.br\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3e5e7fe964521f618a2b09d3fbb7800f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3e5e7fe964521f618a2b09d3fbb7800f?s=96&d=mm&r=g\",\"caption\":\"Everton Gon\u00e7alves\"},\"description\":\"http:\/\/www.ctasoftware.com.br\",\"sameAs\":[\"http:\/\/www.ctasoftware.com.br\"],\"url\":\"https:\/\/www.ctasoftware.com.br\/blog\/author\/everton-goncalves\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Limpar Cache NPM - CTASoftware Blog","description":"CTASoftware Blog Limpar Cache NPM","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/","og_locale":"pt_BR","og_type":"article","og_title":"Limpar Cache NPM - CTASoftware Blog","og_description":"CTASoftware Blog Limpar Cache NPM","og_url":"https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/","og_site_name":"CTASoftware Blog","article_published_time":"2019-01-28T18:46:36+00:00","article_modified_time":"2019-01-28T18:47:22+00:00","author":"Everton Gon\u00e7alves","twitter_misc":{"Escrito por":"Everton Gon\u00e7alves"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/#article","isPartOf":{"@id":"https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/"},"author":{"name":"Everton Gon\u00e7alves","@id":"https:\/\/www.ctasoftware.com.br\/blog\/#\/schema\/person\/34f7fa2c76834d8410f6dd43e26fd3e4"},"headline":"Limpar Cache NPM","datePublished":"2019-01-28T18:46:36+00:00","dateModified":"2019-01-28T18:47:22+00:00","mainEntityOfPage":{"@id":"https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/"},"wordCount":40,"commentCount":0,"publisher":{"@id":"https:\/\/www.ctasoftware.com.br\/blog\/#organization"},"keywords":["typescript"],"articleSection":["IONIC"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/","url":"https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/","name":"Limpar Cache NPM - CTASoftware Blog","isPartOf":{"@id":"https:\/\/www.ctasoftware.com.br\/blog\/#website"},"datePublished":"2019-01-28T18:46:36+00:00","dateModified":"2019-01-28T18:47:22+00:00","description":"CTASoftware Blog Limpar Cache NPM","breadcrumb":{"@id":"https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.ctasoftware.com.br\/blog\/limpar-cache-npm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/www.ctasoftware.com.br\/blog\/"},{"@type":"ListItem","position":2,"name":"Limpar Cache NPM"}]},{"@type":"WebSite","@id":"https:\/\/www.ctasoftware.com.br\/blog\/#website","url":"https:\/\/www.ctasoftware.com.br\/blog\/","name":"CTASoftware Blog","description":"Para Desenvolvedores De Software","publisher":{"@id":"https:\/\/www.ctasoftware.com.br\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.ctasoftware.com.br\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/www.ctasoftware.com.br\/blog\/#organization","name":"CTASoftware","url":"https:\/\/www.ctasoftware.com.br\/blog\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.ctasoftware.com.br\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.ctasoftware.com.br\/blog\/wp-content\/uploads\/2023\/06\/logocta.png?fit=225%2C44&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.ctasoftware.com.br\/blog\/wp-content\/uploads\/2023\/06\/logocta.png?fit=225%2C44&ssl=1","width":225,"height":44,"caption":"CTASoftware"},"image":{"@id":"https:\/\/www.ctasoftware.com.br\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.ctasoftware.com.br\/blog\/#\/schema\/person\/34f7fa2c76834d8410f6dd43e26fd3e4","name":"Everton Gon\u00e7alves","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.ctasoftware.com.br\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3e5e7fe964521f618a2b09d3fbb7800f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3e5e7fe964521f618a2b09d3fbb7800f?s=96&d=mm&r=g","caption":"Everton Gon\u00e7alves"},"description":"http:\/\/www.ctasoftware.com.br","sameAs":["http:\/\/www.ctasoftware.com.br"],"url":"https:\/\/www.ctasoftware.com.br\/blog\/author\/everton-goncalves\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6ACmG-5J","jetpack-related-posts":[{"id":335,"url":"https:\/\/www.ctasoftware.com.br\/blog\/erro-comum-no-laravel-show-errorexception-file_put_contents-failed-to-open-stream-no-such-file-or-directory\/","url_meta":{"origin":355,"position":0},"title":"Erro comum no Laravel show ErrorException file_put_contents failed to open stream: No such file or directory","author":"Everton Gon\u00e7alves","date":"12 de novembro de 2018","format":false,"excerpt":"Ao acontecer esse erro ou para evitar que ocorra normalmente deve executar o comando\u00a0php artisan config:cache como parte de sua rotina de implanta\u00e7\u00e3o de produ\u00e7\u00e3o. Remova o arquivo de cache de configura\u00e7\u00e3o Limpar o cache do aplicativo Crie um arquivo de cache para carregamento de configura\u00e7\u00e3o mais r\u00e1pido Para fazer\u2026","rel":"","context":"Em &quot;Linux&quot;","block_context":{"text":"Linux","link":"https:\/\/www.ctasoftware.com.br\/blog\/category\/linux\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":434,"url":"https:\/\/www.ctasoftware.com.br\/blog\/configurar-ambiente-react-native\/","url_meta":{"origin":355,"position":1},"title":"Configurar ambiente react native","author":"Everton Gon\u00e7alves","date":"1 de julho de 2022","format":false,"excerpt":"Passo 1: Baixar e instalar o jdkBaixar e instalar o node.jsBaixar e instalar o Android Studio Passo 2: Instalar o React Native globalmente npm install -g react-native-cli Passo 3: Configurar as vari\u00e1veis de ambiente no windows: Vari\u00e1veis: JAVA_HOME e ANDROID_HOME","rel":"","context":"Em &quot;IONIC&quot;","block_context":{"text":"IONIC","link":"https:\/\/www.ctasoftware.com.br\/blog\/category\/ionic\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":52,"url":"https:\/\/www.ctasoftware.com.br\/blog\/comando-mysql-para-converter-timestamp-em-datetime-e-vice-versa\/","url_meta":{"origin":355,"position":2},"title":"Comando MySQL para converter timestamp em datetime e vice-versa","author":"Everton Gon\u00e7alves","date":"8 de junho de 2012","format":false,"excerpt":"Essa \u00e9 uma d\u00favida de muitos usu\u00e1rios do MySQL. Sempre esquecemos desse comando f\u00e1cil, pr\u00e1tico e pouco utilizado. Converter unix timestamp em datetime (from_unixtime): SELECT from_unixtime('1349391600') field_datetime ; Converter datetime em unix timestamp (unix_timestamp): SELECT unix_timestamp(\"2010-06-12 17:10:00\");","rel":"","context":"Em &quot;MySQL&quot;","block_context":{"text":"MySQL","link":"https:\/\/www.ctasoftware.com.br\/blog\/category\/mysql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":458,"url":"https:\/\/www.ctasoftware.com.br\/blog\/excluir-arquivos-pasta-linux-rm-rf\/","url_meta":{"origin":355,"position":3},"title":"Encontrar e excluir arquivos na pasta LINUX","author":"Everton Gon\u00e7alves","date":"10 de setembro de 2023","format":false,"excerpt":"Para deletar arquivos que foram criados h\u00e1 mais de uma quantidade de dias em uma pasta no sistema Linux, voc\u00ea pode usar o comando find em conjunto com o comando rm. find \/caminho\/da\/pasta -type f -ctime +3 -exec rm {} \\; Detalhando os comandos: find: \u00c9 o comando usado para\u2026","rel":"","context":"Em &quot;Linux&quot;","block_context":{"text":"Linux","link":"https:\/\/www.ctasoftware.com.br\/blog\/category\/linux\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":430,"url":"https:\/\/www.ctasoftware.com.br\/blog\/desabilitar-e-reabilitar-constraint-sql-server\/","url_meta":{"origin":355,"position":4},"title":"Desabilitar e Reabilitar constraint SQL Server","author":"Everton Gon\u00e7alves","date":"15 de dezembro de 2021","format":false,"excerpt":"Para habilitar utilize o comando: ALTER TABLE tableName NOCHECK CONSTRAINT ALL Para reabilitar utilize o comando: ALTER TABLE tableName WITH CHECK CHECK CONSTRAINT ALL Obs: substituir o tableName pelo nome da sua tabela.","rel":"","context":"Em &quot;SQL&quot;","block_context":{"text":"SQL","link":"https:\/\/www.ctasoftware.com.br\/blog\/category\/sql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":207,"url":"https:\/\/www.ctasoftware.com.br\/blog\/duplicar-tabela-mysql\/","url_meta":{"origin":355,"position":5},"title":"Duplicar tabela MySQL","author":"Everton Gon\u00e7alves","date":"9 de dezembro de 2016","format":false,"excerpt":"Apenas um comando para duplicar uma tabela utilizando MySQL [sql] CREATE TABLE tbFuncionario_old SELECT * FROM tbFuncionario; [\/sql]","rel":"","context":"Em &quot;MySQL&quot;","block_context":{"text":"MySQL","link":"https:\/\/www.ctasoftware.com.br\/blog\/category\/mysql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.ctasoftware.com.br\/blog\/wp-json\/wp\/v2\/posts\/355"}],"collection":[{"href":"https:\/\/www.ctasoftware.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ctasoftware.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ctasoftware.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ctasoftware.com.br\/blog\/wp-json\/wp\/v2\/comments?post=355"}],"version-history":[{"count":2,"href":"https:\/\/www.ctasoftware.com.br\/blog\/wp-json\/wp\/v2\/posts\/355\/revisions"}],"predecessor-version":[{"id":357,"href":"https:\/\/www.ctasoftware.com.br\/blog\/wp-json\/wp\/v2\/posts\/355\/revisions\/357"}],"wp:attachment":[{"href":"https:\/\/www.ctasoftware.com.br\/blog\/wp-json\/wp\/v2\/media?parent=355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ctasoftware.com.br\/blog\/wp-json\/wp\/v2\/categories?post=355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ctasoftware.com.br\/blog\/wp-json\/wp\/v2\/tags?post=355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}