node-sass 4.14.1 安装失败 left-pad python2.7

457 阅读1分钟

node-sass安装失败

下面不用看了,遇到node-sasa问题直接卸载node-sass

安装sass进行替代,不过需要解决一下deep的应用

以前的/deep 修改为 ::v-deep ok,完美解决,终于不用再为node-sass头疼啦!!!!!


试了很多方法都没有解决安装问题,最直接粗暴的解决方式就是 npm uninstall node-sass

然后执行npm i 再安装 node-sass

因为是新环境所以还遇到了python2.7的问题,如下

gyp verb command configure []
gyp verb check python checking for Python executable "python2.7" in the PATH
gyp verb `which` failed Error: not found: python2.7
gyp verb `which` failed     at getNotFoundError (D:\JC\dqm\src\dqm-web\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (D:\JC\dqm\src\dqm-web\node_modules\which\which.js:68:19)
gyp verb `which` failed     at E (D:\JC\dqm\src\dqm-web\node_modules\which\which.js:80:29)
gyp verb `which` failed     at D:\JC\dqm\src\dqm-web\node_modules\which\which.js:89:16
gyp verb `which` failed     at D:\JC\dqm\src\dqm-web\node_modules\isexe\index.js:42:5
gyp verb `which` failed     at D:\JC\dqm\src\dqm-web\node_modules\isexe\windows.js:36:5
gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:192:21)
gyp verb `which` failed  python2.7 Error: not found: python2.7
gyp verb `which` failed     at getNotFoundError (D:\JC\dqm\src\dqm-web\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (D:\JC\dqm\src\dqm-web\node_modules\which\which.js:68:19)
gyp verb `which` failed     at E (D:\JC\dqm\src\dqm-web\node_modules\which\which.js:80:29)
gyp verb `which` failed     at D:\JC\dqm\src\dqm-web\node_modules\which\which.js:89:16
gyp verb `which` failed     at D:\JC\dqm\src\dqm-web\node_modules\isexe\index.js:42:5
gyp verb `which` failed     at D:\JC\dqm\src\dqm-web\node_modules\isexe\windows.js:36:5
gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:192:21) {
gyp verb `which` failed   code: 'ENOENT'
gyp verb `which` failed }
gyp verb could not find "python2.7". checking python launcher
gyp verb could not find "python2.7". guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
gyp ERR! configure error

需要下载python2.7,推荐

华为镜像:Index of python-local/2.7 (huaweicloud.com)

下载安装,不要修改安装地址直接确定即可