登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
登录
注册
代码拉取完成,页面将自动刷新
开源项目
>
WEB应用开发
>
WebUI组件/框架
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
246
Star
2.8K
Fork
1.6K
smallchill
/
Saber
代码
Issues
44
Pull Requests
3
Wiki
统计
流水线
服务
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
yarn install 报错
已完成
#I14PG1
GreyDesolate
创建于
2019-11-08 16:12
环境版本 > node --version v12.13.0 npm --version 6.12.0 在webstrom 2019的Terminal里执行报错如下 ```linux D:\workspace\WebStormWorkSpace\Saber>yarn install yarn install v1.19.1 [1/4] Resolving packages... [2/4] Fetching packages... info fsevents@1.2.7: The platform "win32" is incompatible with this module. info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation. info idb-connector@1.1.8: The platform "win32" is incompatible with this module. info "idb-connector@1.1.8" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning " > sass-loader@7.1.0" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0". [4/4] Building fresh packages... [1/2] yorkie error D:\workspace\WebStormWorkSpace\Saber\node_modules\node-sass: Command failed. Exit code: 1 Command: node scripts/build.js Arguments: Directory: D:\workspace\WebStormWorkSpace\Saber\node_modules\node-sass Output: Building: D:\Program Files\nodejs\node.exe D:\workspace\WebStormWorkSpace\Saber\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cfla gs= --libsass_ldflags= --libsass_library= gyp info it worked if it ends with ok gyp verb cli [ gyp verb cli 'D:\\Program Files\\nodejs\\node.exe', gyp verb cli 'D:\\workspace\\WebStormWorkSpace\\Saber\\node_modules\\node-gyp\\bin\\node-gyp.js', 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@12.13.0 | win32 | 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 "python2" in the PATH gyp verb `which` failed Error: not found: python2 gyp verb `which` failed at getNotFoundError (D:\workspace\WebStormWorkSpace\Saber\node_modules\which\which.js:13:12) gyp verb `which` failed at F (D:\workspace\WebStormWorkSpace\Saber\node_modules\which\which.js:68:19) gyp verb `which` failed at E (D:\workspace\WebStormWorkSpace\Saber\node_modules\which\which.js:80:29) gyp verb `which` failed at D:\workspace\WebStormWorkSpace\Saber\node_modules\which\which.js:89:16 gyp verb `which` failed at D:\workspace\WebStormWorkSpace\Saber\node_modules\isexe\index.js:42:5 gyp verb `which` failed at D:\workspace\WebStormWorkSpace\Saber\node_modules\isexe\windows.js:36:5 gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:158:21) gyp verb `which` failed python2 Error: not found: python2 gyp verb `which` failed at getNotFoundError (D:\workspace\WebStormWorkSpace\Saber\node_modules\which\which.js:13:12) gyp verb `which` failed at F (D:\workspace\WebStormWorkSpace\Saber\node_modules\which\which.js:68:19) gyp verb `which` failed at E (D:\workspace\WebStormWorkSpace\Saber\node_modules\which\which.js:80:29) gyp verb `which` failed at D:\workspace\WebStormWorkSpace\Saber\node_modules\which\which.js:89:16 gyp verb `which` failed at D:\workspace\WebStormWorkSpace\Saber\node_modules\isexe\index.js:42:5 gyp verb `which` failed at D:\workspace\WebStormWorkSpace\Saber\node_modules\isexe\windows.js:36:5 gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:158:21) { gyp verb `which` failed stack: 'Error: not found: python2\n' + gyp verb `which` failed ' at getNotFoundError (D:\\workspace\\WebStormWorkSpace\\Saber\\node_modules\\which\\which.js:13:12)\n' + gyp verb `which` failed ' at F (D:\\workspace\\WebStormWorkSpace\\Saber\\node_modules\\which\\which.js:68:19)\n' + gyp verb `which` failed ' at E (D:\\workspace\\WebStormWorkSpace\\Saber\\node_modules\\which\\which.js:80:29)\n' + gyp verb `which` failed ' at D:\\workspace\\WebStormWorkSpace\\Saber\\node_modules\\which\\which.js:89:16\n' + gyp verb `which` failed ' at D:\\workspace\\WebStormWorkSpace\\Saber\\node_modules\\isexe\\index.js:42:5\n' + gyp verb `which` failed ' at D:\\workspace\\WebStormWorkSpace\\Saber\\node_modules\\isexe\\windows.js:36:5\n' + gyp verb `which` failed ' at FSReqCallback.oncomplete (fs.js:158:21)', gyp verb `which` failed code: 'ENOENT' gyp verb `which` failed } gyp verb check python checking for Python executable "python" in the PATH gyp verb `which` succeeded python C:\Program Files (x86)\Python37-32\python.EXE gyp ERR! configure error gyp ERR! stack Error: Command failed: C:\Program Files (x86)\Python37-32\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "<string>", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:295:12) gyp ERR! stack at ChildProcess.emit (events.js:210:5) gyp ERR! stack at maybeClose (internal/child_process.js:1021:16) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) gyp ERR! System Windows_NT 10.0.17134 gyp ERR! command "D:\\Program Files\\nodejs\\node.exe" "D:\\workspace\\WebStormWorkSpace\\Saber\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--l ibsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd D:\workspace\WebStormWorkSpace\Saber\node_modules\node-sass gyp ERR! node -v v12.13.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok Build failed with error code: 1 ```
环境版本 > node --version v12.13.0 npm --version 6.12.0 在webstrom 2019的Terminal里执行报错如下 ```linux D:\workspace\WebStormWorkSpace\Saber>yarn install yarn install v1.19.1 [1/4] Resolving packages... [2/4] Fetching packages... info fsevents@1.2.7: The platform "win32" is incompatible with this module. info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation. info idb-connector@1.1.8: The platform "win32" is incompatible with this module. info "idb-connector@1.1.8" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning " > sass-loader@7.1.0" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0". [4/4] Building fresh packages... [1/2] yorkie error D:\workspace\WebStormWorkSpace\Saber\node_modules\node-sass: Command failed. Exit code: 1 Command: node scripts/build.js Arguments: Directory: D:\workspace\WebStormWorkSpace\Saber\node_modules\node-sass Output: Building: D:\Program Files\nodejs\node.exe D:\workspace\WebStormWorkSpace\Saber\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cfla gs= --libsass_ldflags= --libsass_library= gyp info it worked if it ends with ok gyp verb cli [ gyp verb cli 'D:\\Program Files\\nodejs\\node.exe', gyp verb cli 'D:\\workspace\\WebStormWorkSpace\\Saber\\node_modules\\node-gyp\\bin\\node-gyp.js', 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@12.13.0 | win32 | 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 "python2" in the PATH gyp verb `which` failed Error: not found: python2 gyp verb `which` failed at getNotFoundError (D:\workspace\WebStormWorkSpace\Saber\node_modules\which\which.js:13:12) gyp verb `which` failed at F (D:\workspace\WebStormWorkSpace\Saber\node_modules\which\which.js:68:19) gyp verb `which` failed at E (D:\workspace\WebStormWorkSpace\Saber\node_modules\which\which.js:80:29) gyp verb `which` failed at D:\workspace\WebStormWorkSpace\Saber\node_modules\which\which.js:89:16 gyp verb `which` failed at D:\workspace\WebStormWorkSpace\Saber\node_modules\isexe\index.js:42:5 gyp verb `which` failed at D:\workspace\WebStormWorkSpace\Saber\node_modules\isexe\windows.js:36:5 gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:158:21) gyp verb `which` failed python2 Error: not found: python2 gyp verb `which` failed at getNotFoundError (D:\workspace\WebStormWorkSpace\Saber\node_modules\which\which.js:13:12) gyp verb `which` failed at F (D:\workspace\WebStormWorkSpace\Saber\node_modules\which\which.js:68:19) gyp verb `which` failed at E (D:\workspace\WebStormWorkSpace\Saber\node_modules\which\which.js:80:29) gyp verb `which` failed at D:\workspace\WebStormWorkSpace\Saber\node_modules\which\which.js:89:16 gyp verb `which` failed at D:\workspace\WebStormWorkSpace\Saber\node_modules\isexe\index.js:42:5 gyp verb `which` failed at D:\workspace\WebStormWorkSpace\Saber\node_modules\isexe\windows.js:36:5 gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:158:21) { gyp verb `which` failed stack: 'Error: not found: python2\n' + gyp verb `which` failed ' at getNotFoundError (D:\\workspace\\WebStormWorkSpace\\Saber\\node_modules\\which\\which.js:13:12)\n' + gyp verb `which` failed ' at F (D:\\workspace\\WebStormWorkSpace\\Saber\\node_modules\\which\\which.js:68:19)\n' + gyp verb `which` failed ' at E (D:\\workspace\\WebStormWorkSpace\\Saber\\node_modules\\which\\which.js:80:29)\n' + gyp verb `which` failed ' at D:\\workspace\\WebStormWorkSpace\\Saber\\node_modules\\which\\which.js:89:16\n' + gyp verb `which` failed ' at D:\\workspace\\WebStormWorkSpace\\Saber\\node_modules\\isexe\\index.js:42:5\n' + gyp verb `which` failed ' at D:\\workspace\\WebStormWorkSpace\\Saber\\node_modules\\isexe\\windows.js:36:5\n' + gyp verb `which` failed ' at FSReqCallback.oncomplete (fs.js:158:21)', gyp verb `which` failed code: 'ENOENT' gyp verb `which` failed } gyp verb check python checking for Python executable "python" in the PATH gyp verb `which` succeeded python C:\Program Files (x86)\Python37-32\python.EXE gyp ERR! configure error gyp ERR! stack Error: Command failed: C:\Program Files (x86)\Python37-32\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "<string>", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:295:12) gyp ERR! stack at ChildProcess.emit (events.js:210:5) gyp ERR! stack at maybeClose (internal/child_process.js:1021:16) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) gyp ERR! System Windows_NT 10.0.17134 gyp ERR! command "D:\\Program Files\\nodejs\\node.exe" "D:\\workspace\\WebStormWorkSpace\\Saber\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--l ibsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd D:\workspace\WebStormWorkSpace\Saber\node_modules\node-sass gyp ERR! node -v v12.13.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok Build failed with error code: 1 ```
评论 (
1
)
登录
后才可以发表评论
状态
已完成
待办的
进行中
已完成
已关闭
负责人
未设置
标签
未设置
标签管理
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
未关联
master
vue2
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
参与者(1)
JavaScript
1
https://gitee.com/smallc/Saber.git
git@gitee.com:smallc/Saber.git
smallc
Saber
Saber
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册