Merge pull request #4949 from AGhorab-upland/master

Add qoutes when installing local tgz to fix spacing in the file path
This commit is contained in:
Nick O'Leary
2024-12-16 09:44:28 +00:00
committed by GitHub
2 changed files with 24 additions and 1 deletions

View File

@@ -144,7 +144,7 @@ async function installModule(module,version,url) {
if (url) {
if (pkgurlRe.test(url) || localtgzRe.test(url)) {
// Git remote url or Tarball url - check the valid package url
installName = url;
installName = localtgzRe.test(url) && slashRe.test(url) ? `"${url}"` : url;
isRegistryPackage = false;
} else {
log.warn(log._("server.install.install-failed-url",{name:module,url:url}));