【发布时间】:2020-08-30 09:48:28
【问题描述】:
npm install 失败,我的目标是让它成功。
我安装了 Python 2,但它位于 /usr/bin/python2 而不是 /usr/local/bin/python2。
我在运行npm install 时收到以下错误消息。
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library='
gyp verb cli ]
gyp info using node-gyp@3.8.0
gyp info using node@14.2.0 | darwin | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "/usr/local/bin/python2" in the PATH
gyp verb `which` failed Error: not found: /usr/local/bin/python2
我该怎么办?
【问题讨论】:
标签: node.js macos python-2.7 npm npm-install