[OE-core] [PATCH] npm.bbclass: Force cache clear
Davis, Michael
michael.davis at essvote.com
Wed Nov 1 21:56:45 UTC 2017
Fixes the following issue when trying to build npm based recipes:
| npm ERR! As of npm at 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.
Signed-off-by: Michael Davis <michael.davis at essvote.com>
---
meta/classes/npm.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/npm.bbclass b/meta/classes/npm.bbclass
index a69bedbb28..e5a10dd392 100644
--- a/meta/classes/npm.bbclass
+++ b/meta/classes/npm.bbclass
@@ -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
--
2.13.6
More information about the Openembedded-core
mailing list