-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Target directory is expected to be absolute #124
Comments
getting the same error
|
find this code => if (!path.isAbsolute(opts.dir) in extract-zip/index.html and comment it out to use relative path :) |
As a workaround I convert the target directory path to absolute path using Node's |
NPM support for zip unzipping in windows"postdownload:script:win": "powershell -Command "$path = (Resolve-Path .).Path + '\your_rel_path'; if (-Not (Test-Path $path)) { New-Item -ItemType Directory -Force -Path $path }; [System.Reflection.Assembly]::LoadWithPartialName('System.IO.Compression.FileSystem'); [System.IO.Compression.ZipFile]::ExtractToDirectory('zipped_file_name.zip', $path); Remove-Item zipped_file_name.zip"",
|
Why not support relative path?
The text was updated successfully, but these errors were encountered: