mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-08 17:20:00 +08:00
🐛 Fix(custom): fix shell-path usage for macos
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { shellPath } from 'shell-path'
|
||||
import { shellPathSync } from 'shell-path'
|
||||
|
||||
export default function fixPath () {
|
||||
if (process.platform === 'win32') {
|
||||
@@ -6,5 +6,5 @@ export default function fixPath () {
|
||||
}
|
||||
|
||||
process.env.PATH =
|
||||
shellPath.sync() || ['./node_modules/.bin', '/.nodebrew/current/bin', '/usr/local/bin', process.env.PATH].join(':')
|
||||
shellPathSync() || ['./node_modules/.bin', '/.nodebrew/current/bin', '/usr/local/bin', process.env.PATH].join(':')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user