相关疑难解决方法(0)

纱线安装导入系统失败;print "%s.%s.%s" % sys.version_info[:3] 语法无效

执行此操作时,yarn install我收到此错误,但其他项目没有问题,也使用 Brew 安装节点。请注意我还应该尝试什么,有什么建议吗?

error */node_modules/node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments: 
Directory: */node_modules/node-sass
Output:
Building: /opt/homebrew/Cellar/node@14/14.18.1/bin/node */node_modules/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   '/opt/homebrew/Cellar/node@14/14.18.1/bin/node',
gyp verb cli   '*/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 …
Run Code Online (Sandbox Code Playgroud)

node.js reactjs node-sass

33
推荐指数
4
解决办法
5万
查看次数

标签 统计

node-sass ×1

node.js ×1

reactjs ×1