vegardit / scoop-portable

Self-contained Windows batch file that installs/loads a portable scoop (https://scoop.sh) environment.
Apache License 2.0
8 stars 3 forks source link

error:scoop-portable.cmd 此时不应有 <。 #1

Closed wzf9 closed 11 months ago

wzf9 commented 1 year ago

when I run: H:\mysoftware\mysoftware_scoop_portable\scoop_portable>scoop-portable.cmd

get the error: 此时不应有 <。

I cannot solve this probelm, and who can give some advice please. Thanks a lot!

-------------------------------------------------------------------------

solution:

-------------------------------------------------------------------------

if installed scoop before, you should uninstall scoop first,otherwise the terminal will get the error:

scoop-portable.cmd 此时不应有 <。

this is because the conflict with scoop in the environment variable path

------------------------------------------------------------------------

my download process

------------------------------------------------------------------------

# (1)下载文件
#方法1
git clone https://github.com/vegardit/scoop-portable H:\mysoftware\scoop_portable

#方法2
# 创建目录
set scoop_portable=H:\mysoftware\scoop_portable
# 查看环境变量
set scoop_portable
echo %scoop_portable%
mkdir %scoop_portable% | cd
cd /d %scoop_portable%
# powershell
# $env:scoop_portable = 'H:\mysoftware\scoop_portable'
# mkdir $env:scoop_portable |cd

# [手动下载 scoop-portable.cmd到上述文件夹](https://github.com/vegardit/scoop-portable/blob/main/scoop-portable.cmd)

# *[手动下载 scoop-portable-config到上述文件夹](https://github.com/vegardit/scoop-portable/blob/main/scoop-portable-config.example.cmd)

# (2) rename the scoop-portable-config.example.cmd as scoop-portable-config.cmd

# (3)terminal中执行scoop-portable.cmd
scoop-portable.cmd

#---------
# note:
#---------
# 安装过scoop的电脑,需要先卸载scoop,否则报错:
# if installed scoop before, you should uninstall scoop first,otherwise the terminal will get the error:
# [scoop-portable.cmd 此时不应有 <。](https://github.com/vegardit/scoop-portable/issues/1)
# this is because the conflict with scoop in the environment variable path

# 不要使用管理员方式打开cmd,否则报错:
# donnot Run the installer as administrator,otherwise the terminal will get the error:
# Running the installer as administrator is disabled by default, see https://github.com/ScoopInstaller/Install#for-admin for details.
stale[bot] commented 12 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.