小编Joe*_*ner的帖子

运行 npm install 时未找到 distutils

我是一个 NODE 新手,正在尝试安装和运行https://github.com/DylanAkp/AirtagsAnywhere

我使用的是装有 Python 3.12 的全新 M2 Mac

节点 18.18 和 NPM 9.8.1

并获得长流。我理解警告,但无法遵循错误。

有人能指出我正确的方向吗?

npm ERR! code 1
    npm ERR! path /Users/airtag/Desktop/AirtagsAnywhere/front_airtags/node_modules/node-sass
    npm ERR! command failed
    npm ERR! command sh -c node scripts/build.js
    npm ERR! Building: /usr/local/bin/node /Users/airtag/Desktop/AirtagsAnywhere/front_airtags/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
    npm ERR! gyp info it worked if it ends with ok
    npm ERR! gyp verb cli [
    npm ERR! gyp verb cli   '/usr/local/bin/node',
    npm ERR! gyp verb cli   '/Users/airtag/Desktop/AirtagsAnywhere/front_airtags/node_modules/node-gyp/bin/node-gyp.js',
    npm ERR! gyp verb …
Run Code Online (Sandbox Code Playgroud)

npm node-gyp

6
推荐指数
2
解决办法
2908
查看次数

标签 统计

node-gyp ×1

npm ×1