每次我打开新终端时都会弹出此错误消息。
bash: /home/rabi/.bashrc: line 11: syntax error near unexpected token 'PATH=/usr/local/share/npm/bin:$PATH'
bash: /home/rabi/.bashrc: line 11: 'rt PATH=/usr/local/share/npm/bin:$PATH'
我该如何修复它?
答案1
在第 11 行,请确保有单词“export”,而不是“rt”
完整行应为:
export PATH=/usr/local/share/npm/bin:$PATH