[OE-core] [PATCH] classes/npm: replace cache clear with cache clean --force
mpvader
mvader at victronenergy.com
Sun Feb 4 22:23:17 UTC 2018
npm now requires --force to clean the cache, see [1]. Also, use
clean instead of clear since the latter is an alias.
[1] https://github.com/npm/npm/commit/34f24c8381235790945208d25ac193bc97a21b79
Signed-off-by: mpvader <mvader at victronenergy.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 a69bedb..43aed36 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 clean --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.7.4
More information about the Openembedded-core
mailing list