Update an installed Spoon: download it again from where it was installed from (the same
source, ref and URL), and reinstall it if its version has changed. A Spoon installed from
a pinned tag, commit or versioned URL doesn't change; install the newer one with
install(name, { ..., force: true }) instead.
Besides the codes install() uses, the Promise rejects with ENOTINSTALLED, ENOSOURCE
for a Spoon that wasn't installed by install() (or was since replaced some other way, such
as by opening a .spoon2 file), or ECANCELED if the Spoon was reinstalled while the
update was downloading.
Parameters
name: string
The name of the installed Spoon
Returns Promise<boolean>
Resolves with true if the Spoon was updated, or false if it was already up to date
Update an installed Spoon: download it again from where it was installed from (the same source, ref and URL), and reinstall it if its version has changed. A Spoon installed from a pinned tag, commit or versioned URL doesn't change; install the newer one with
install(name, { ..., force: true })instead.Besides the codes
install()uses, the Promise rejects withENOTINSTALLED,ENOSOURCEfor a Spoon that wasn't installed byinstall()(or was since replaced some other way, such as by opening a.spoon2file), orECANCELEDif the Spoon was reinstalled while the update was downloading.