Windows 10 为什么我不能打电话给纱线,纱线安装有问题

Windows 10 为什么我不能打电话给纱线,纱线安装有问题,windows-10,yarnpkg,Windows 10,Yarnpkg,你能帮帮我吗。我不明白为什么当我打电话时会发生这种情况-我得到这个: 不支持Node版本0.10.40,请使用Node.js 4.0或更高版本。 我怎样才能修好它。我使用节点12.16.3和纱线1.22.4的最新版本。 也许正因为如此,我在调用-纱线安装时出错很多 yarn install v1.22.4 warning package-lock.json found. Your project contains lock files generated by tools other than

你能帮帮我吗。我不明白为什么当我打电话时会发生这种情况-我得到这个: 不支持Node版本0.10.40,请使用Node.js 4.0或更高版本。 我怎样才能修好它。我使用节点12.16.3和纱线1.22.4的最新版本。 也许正因为如此,我在调用-纱线安装时出错很多

yarn install v1.22.4
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistenci
es caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[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.
[3/4] Linking dependencies...
warning " > sass-loader@7.3.1" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0".
[4/4] Building fresh packages...
error ***\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: ***\node-sass
Output:
Building: C:\Program Files\nodejs\node.exe ***\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass
_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli   'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli   '***\\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.16.3 | 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 (***\which\which.js:13:12)
gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:167:21)
gyp verb `which` failed  python2 Error: not found: python2
gyp verb `which` failed     at getNotFoundError ***\which\which.js:13:12)
gyp verb `which` failed     at ***isexe\index.js:42:5
gyp verb `which` failed     at ***\isexe\windows.js:36:5
gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:167: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:\Users\***\AppData\Local\Programs\Python\Python38-32\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Users\***\AppData\Local\Programs\Python\Python38-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:303:12)
gyp ERR! stack     at ChildProcess.emit (events.js:310:20)
gyp ERR! stack     at maybeClose (internal/child_process.js:1021:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "***node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=
" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! ***node_modules\node-sass
gyp ERR! node -v v12.16.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
纱线安装v1.22.4
找到警告package-lock.json。您的项目包含由Thread以外的工具生成的锁定文件。建议不要混用软件包经理,以避免解决方案不一致
未同步的锁文件导致的错误。要清除此警告,请删除package-lock.json。
[1/4]正在解析包。。。
[2/4]正在获取包。。。
信息fsevents@1.2.7:平台“win32”与此模块不兼容。
信息“fsevents@1.2.7“是可选的依赖项,兼容性检查失败。将其从安装中排除。
[3/4]链接依赖项。。。
警告“>sass-loader@7.3.1“具有未满足的对等依赖关系”网页@^3.0.0| ^4.0.0”。
[4/4]构建新的包。。。
错误***\node sass:命令失败。
退出代码:1
命令:节点脚本/build.js
论据:
目录:**\node sass
输出:
生成:C:\Program Files\nodejs\nodejs.exe***\node gyp\bin\node-gyp.js重建--verbose--libsass\u ext=--libsass\u cflags=--libsass
_ldflags=--libsass_库=
gyp信息如果以ok结尾,它就起作用了
动词cli[
gyp动词cli'C:\\Program Files\\nodejs\\node.exe',
gyp动词cli'***\\node gyp\\bin\\node gyp.js',
gyp动词cli“重建”,
gyp动词cli'--verbose',
gyp动词cli'--libsass_ext=',
gyp动词cli'--libsass_cflags=',
gyp动词cli'--libsass_ldflags=',
gyp动词cli'--libsass_library='1〕
动词[cli]
gyp信息使用节点-gyp@3.8.0
gyp信息使用node@12.16.3| win32 | x64
gyp谓词命令重新生成[]
gyp动词命令clean[]
gyp谓词清除删除“build”目录
gyp谓词命令配置[]
gyp谓词检查python检查路径中的python可执行文件“python2”
gyp动词`which`失败错误:未找到:python2
gyp动词`which`在getNotFoundError时失败(***\which\which.js:13:12)
gyp动词`which`在FSReqCallback.oncomplete失败(fs.js:167:21)
gyp动词`which`失败的python2错误:未找到:python2
gyp动词'which`在getNotFoundError***\which\which.js:13:12失败)
gyp动词`which`在***isexe\index.js:42:5失败
gyp动词`which`在***\isexe\windows.js:36:5失败
gyp动词`which`在FSReqCallback.oncomplete失败(fs.js:167:21){
gyp动词'which`失败代码:'enoint'
gyp动词`which`failed}
gyp谓词检查python检查路径中的python可执行文件“python”
gyp动词`which`继承了python C:\Users\***\AppData\Local\Programs\python\Python38-32\python.EXE
哎呀!配置错误
哎呀!堆栈错误:命令失败:C:\Users\***\AppData\Local\Programs\Python\Python38-32\Python.EXE-C import sys;打印“%s.%s.%s”%sys.version_info[:3];
哎呀!堆栈文件“”,第1行
哎呀!堆栈导入系统;打印“%s.%s.%s”%sys.version_info[:3];
哎呀!堆叠^
哎呀!堆栈语法错误:无效语法
哎呀!堆栈
哎呀!ChildProcess.exithandler处的堆栈(child_process.js:303:12)
哎呀!ChildProcess.emit处的堆栈(events.js:310:20)
哎呀!maybeClose的堆栈(内部/child_process.js:1021:16)
哎呀!在Process.ChildProcess.\u handle.onexit(internal/child\u Process.js:286:5)处堆栈
哎呀!系统Windows\u NT 10.0.18362
哎呀!命令“C:\\Program Files\\nodejs\\node.exe”“***node gyp\\bin\\node gyp.js”“rebuild”“--verbose”“--libsass\u ext”=
“”--libsass\u cflags=“”--libsass\u ldflags=“”--libsass\u库=”
哎呀***节点\模块\节点sass
哎呀!节点-v12.16.3
哎呀!节点gyp-v3.8.0
哎呀!不好
生成失败,错误代码:1
信息访问https://yarnpkg.com/en/docs/cli/install 有关此命令的文档。

看起来您缺少正确的网页包版本。可与以下设备一起安装:

npm安装网页包

npm安装网页包@^4.0.0
您还需要python2,可以从中安装


注意:python2不再受支持,因此我想知道您是否需要更新任何其他内容。

看起来您缺少正确的网页包版本。可与以下设备一起安装:

npm安装网页包

npm安装网页包@^4.0.0
您还需要python2,可以从中安装


注意:python2不再受支持,因此我想知道您是否需要更新任何其他内容。

@FrozeName删除node_modules文件夹并继续运行
shell npm install
可能会有所帮助。如果这样做有效,请让我知道,以便我可以更新。嘿,谢谢您的建议,我有问题,因为我使用了错误版本的纱线和npm@CWB@frozenme我很高兴你能弄明白。如果可能的话,你能将你的解决方案作为答案发布吗?这样,任何与你有同样问题的人都能从中受益。您也可以接受您的回答。@FrozeName删除node_modules文件夹并继续运行
shell npm install
可能会有所帮助。如果这样做有效,请告诉我,以便我可以更新。嘿,谢谢您的建议,我遇到了问题,因为我使用了错误版本的Thread和npm@CWB@frozenme我很高兴你能弄明白。如果可能的话,你能将你的解决方案作为答案发布吗?这样,任何与你有同样问题的人都能从中受益。你也可以接受你的答案。