[OE-core] [PATCH] classes/npm: replace cache clear with cache clean --force

Böszörményi Zoltán zboszor at pr.hu
Mon Feb 5 14:06:33 UTC 2018


I have already sent this patch (although a little extended) last week:
http://lists.openembedded.org/pipermail/openembedded-core/2018-February/147071.html

2018-02-04 23:23 keltezéssel, mpvader írta:
> 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
> 




More information about the Openembedded-core mailing list