Closed hwhsu1231 closed 1 year ago
The checkbox at the top of the first comment is ticked indicating this is not an issue with a specific package. This is an issue installing the sass
package because the dart
package fails:
Cannot find drive. A drive with the name 'M' does not exist. ERROR: Cannot bind argument to parameter 'Path' because it is null.
Please contact the package maintainers for help with this error.
Checklist
What You Are Seeing?
Failed to install sass package with the following error message:
Click to expand log
```cmd C:\Users\hwhsu1231>gsudo choco install sass Chocolatey v2.2.2 3 validations performed. 2 success(es), 1 warning(s), and 0 error(s). Validation Warnings: - System Cache directory is not locked down to administrators. Remove the directory 'C:\ProgramData\ChocolateyHttpCache' to have Chocolatey CLI create it with the proper permissions. Installing the following packages: sass By installing, you accept licenses for the packages. Progress: Downloading dart-sdk 3.1.0... 100% dart-sdk v3.1.0 [Approved] dart-sdk package files install completed. Performing other installation steps. The package dart-sdk wants to run 'chocolateyInstall.ps1'. Note: If you don't run this script, the installation will fail. Note: To confirm automatically next time, use '-y' or consider: choco feature enable -n allowGlobalConfirmation Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): y Cannot find drive. A drive with the name 'M' does not exist. ERROR: Cannot bind argument to parameter 'Path' because it is null. The install of dart-sdk was NOT successful. Error while running 'C:\ProgramData\chocolatey\lib\dart-sdk\chocolateyInstall.ps1'. See log for details. Progress: Downloading sass 1.66.1... 100% sass v1.66.1 [Approved] sass package files install completed. Performing other installation steps. The package sass wants to run 'chocolateyInstall.ps1'. Note: If you don't run this script, the installation will fail. Note: To confirm automatically next time, use '-y' or consider: choco feature enable -n allowGlobalConfirmation Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): y Fetching Dart dependencies... ERROR: The term 'dart' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. The install of sass was NOT successful. Error while running 'C:\ProgramData\chocolatey\lib\sass\tools\chocolateyInstall.ps1'. See log for details. Chocolatey installed 0/2 packages. 2 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). Failures - dart-sdk (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\dart-sdk\chocolateyInstall.ps1'. See log for details. - sass (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\sass\tools\chocolateyInstall.ps1'. See log for details. C:\Users\hwhsu1231> ```What is Expected?
Install it successfully.
How Did You Get This To Happen?
gsudo choco install sass
System Details
Installed Packages
Output Log
Additional Context
No response