Could not find any Python installation to use

还有一种解决办法是设置node-sass源为淘宝镜像

npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/

之后再一次执行以下命令删除node_modules

rm -rf node_modules 清除npm缓存

npm cache clear -f 之后在执行安装命令

npm install 这一次,依赖就可以安装成功了

permission denied,

npm ERR! /Users/allin/.npm/_logs/2019-06-25T06_25_41_898Z-debug.log bogon:dossier allin$ npm i -g npm Unhandled rejection Error: EACCES: permission denied, open '/Users/allin/.npm/_cacache/tmp/c2fda42f'

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at: npm ERR! https://npm.community

npm ERR! A complete log of this run can be found in: npm ERR! /Users/allin/.npm/_logs/2019-06-25T06_26_24_584Z-debug.log

解决方法: sudo chown -R $(whoami) ~/.npm https://github.com/npm/npm/issues/19493

Could not find any Python installation to use

npm install --global node-gyp

npm install --global --production windows-build-tools