概述
如题,详细报错如下:
gyp ERR! configure error
gyp ERR! stack Error: Can’t find Python executable “python”, you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (D:vue-style-codebase-prerendernode_mo
gyp ERR! stack at PythonFinder. (D:vue-style-codebase-prerendernode_mod
gyp ERR! stack at callback (D:vue-style-codebase-prerendernode_modulesgraceful-fs
gyp ERR! stack at FSReqCallback.oncomplete (fs.js:183:21)
gyp ERR! System Windows_NT 10.0.19042
gyp ERR! command “D:Program Filesnodejsnode.exe” “D:vue-style-codebase-prerendeags=” “–libsass_ldflags=” “–libsass_library=”
gyp ERR! cwd D:vue-style-codebase-prerendernode_modulesnode-sass
gyp ERR! node -v v14.16.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_moduleschokidarnode_modules
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {“os”
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_moduleswatchpack-chokidar2n
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.14.1 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.14.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersnealAppDataRoamingnpm-cache_logs2021-11-10T12_44_26_654Z-debug.log
一顿操作,最后找到解决方法:
因为node-sass报错
npm ERR! node-sass@4.14.1 postinstall: node scripts/build.js
解决方案:
输入如下命令:
npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
重新运行npm install即可
最后
以上就是大力发卡为你收集整理的npm install报错, node-sass的全部内容,希望文章能够帮你解决npm install报错, node-sass所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复