Etc/Utils

npm install 시 다른 버전의 파이썬(Python)을 사용하는 방법

hwan91 2021. 11. 16. 10:35

1회성으로만 사용을 원하는 경우

$ npm install --python=python2.7

 

영구적으로 사용을 원하는 경우

$ npm config set python python2.7
또는
$ npm config set python C:\Python27\python.exe // 설치 경로로 직접 설정