Skip to contentSkip to conversation

npm.bbclass: Force cache clear

PATCH New Davis, Michael 1 participant 1 message Nov 1, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 npm.bbclass: Force cache clear

Fixes the following issue when trying to build npm based recipes:
| npm ERR! As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use 'npm cache verify' instead. | npm ERR! If you're sure you want to delete the entire cache, rerun this command with --force.

---
 meta/classes/npm.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/npm.bbclass +1 -1
index a69bedbb28..e5a10dd392 100644
@@ -31,7 +31,7 @@ npm_do_compile() {
 	fi
 	npm set cache ${WORKDIR}/npm_cache
 	# clear cache before every build
-	npm cache clear
+	npm cache clear --force
 	# Install pkg into ${S} without going to the registry
 	if [  "${NPM_INSTALL_DEV}" = "1" ]; then
 		npm --arch=${NPM_ARCH} --target_arch=${NPM_ARCH} --no-registry install
Signature · 1 line
2.13.6