機能をリクエストしバグを報告しますか?
バグ
現在の動作は何ですか?
STR:
yarn add jest
を実行しようとすると、次のエラーが発生します
⇒ yarn add jest
yarn add v0.27.5
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/1] ⢀ fsevents: 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
[-/1] ⢀ waiting...
[-/1] ⢀ waiting...
[-/1] ⢀ waiting...
warning Error running install script for optional dependency: "/Users/Ystartsev/Work/temp/debugger.html/node_modules/fsevents: Command failed.\nExit code: 1\nCommand: sh\nArguments: -c node install\nDirectory: /Users/Ystartsev/Work/temp/debugger.html/node_modules/fsevents\nOutput:\nnode-pre-gyp info it worked if it ends with ok\nnode-pre-gyp info using [email protected]\nnode-pre-gyp info using [email protected] | darwin | x64\nnode-pre-gyp info check checked for \"/Users/Ystartsev/Work/temp/debugger.html/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node\" (not found)\nnode-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz\nnode-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz\nnode-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz \nnode-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v57 ABI) (falling back to source compile with node-gyp) \nnode-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz \nnode-pre-gyp ERR! build error \nnode-pre-gyp ERR! stack Error: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)\nnode-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/Ystartsev/Work/temp/debugger.html/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:77:29)\nnode-pre-gyp ERR! stack at emitOne (events.js:115:13)\nnode-pre-gyp ERR! stack at ChildProcess.emit (events.js:210:7)\nnode-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:195:12)\nnode-pre-gyp ERR! stack at onErrorNT (internal/child_process.js:366:16)\nnode-pre-gyp ERR! stack at _combinedTickCallback (internal/process/next_tick.js:102:11)\nnode-pre-gyp ERR! stack at process._tickCallback (internasuccess Saved lockfile.
success Saved 1 new dependency.
└─ [email protected]
Done in 12.29s.
次に、yarn test(jestの別名)を実行すると、次のエラーが発生します
yarn test v0.27.5
$ jest
TypeError: projects.map is not a function
at Object.<anonymous> (/Users/Ystartsev/Work/temp/debugger.html/node_modules/jest-cli/build/cli/runCLI.js:112:28)
at Generator.next (<anonymous>)
at step (/Users/Ystartsev/Work/temp/debugger.html/node_modules/jest-cli/build/cli/runCLI.js:1:260)
at /Users/Ystartsev/Work/temp/debugger.html/node_modules/jest-cli/build/cli/runCLI.js:1:490
at Promise (<anonymous>)
at Object.<anonymous> (/Users/Ystartsev/Work/temp/debugger.html/node_modules/jest-cli/build/cli/runCLI.js:1:171)
at Object.module.exports [as runCLI] (/Users/Ystartsev/Work/temp/debugger.html/node_modules/jest-cli/build/cli/runCLI.js:139:50)
at Object.run (/Users/Ystartsev/Work/temp/debugger.html/node_modules/devtools-source-map/node_modules/jest-cli/build/cli/index.js:42:17)
at Object.<anonymous> (/Users/Ystartsev/Work/temp/debugger.html/node_modules/devtools-source-map/node_modules/jest-cli/bin/jest.js:16:25)
at Module._compile (module.js:569:30)
error Command failed with exit code 1.
これは次の場所で発生しています: //github.com/devtools-html/debugger.html
期待される動作は何ですか?
jestよりもインストールして実行します。
node.js、yarn、およびオペレーティングシステムのバージョンをお知らせください。
mac OS Sierra
node version: 8.1.5 (tried on other versions, same issue)
yarn version: 0.27.5
これはヤーンの問題ではありませんが、古いバージョンのfseventsに依存するサブ依存関係の問題です。
v1.1.2にアップグレードします。これは、node.js8用にプリコンパイルされたバイナリを備えた最初のバージョンです。
https://github.com/strongloop/fsevents/issues/181
ありがとう!
うーん、でもこれは古いバージョンのyarnとnpmで動作します。
もう1つの注意:これは糸0.24.xで機能します
ここでは再現できません。 yarn add [email protected]
は0.28.1 /ノード8.1.3で正常に動作します
私はyarn0.27.5とノード8.1.4を持っています(どちらもbrew
からインストールできる最新のものです)。 そして、私はまた、しようとするとその404を取得します:
yarn add [email protected]
Mac Os Sierra10.12.5で実行
私も再現できませんでした。 ノード6とノード8の両方で、空のキャッシュを試してみました。
@hequ @codehag利用可能な最新の糸で試すことができますか?
私が使用して新しい空の糸プロジェクトを作成yarn init
してキャッシュをクリアし、 yarn cache clean
、その後でインストールしてみましたyarn add [email protected]
。 これらはノード8.1.4とヤーン0.27.5で実行されました。
ヤーン0.28.1でこれを試したところ、まったく同じエラーが発生しました。
hequ @ MacBook-Pro ~/Projects/omat/yarn
└─ $ ▶ yarn add [email protected]
yarn add v0.28.1
info No lockfile found.
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 📃 Building fresh packages...
[1/1] ⠂ fsevents: GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
[-/1] ⠂ waiting...
[-/1] ⠂ waiting...
[-/1] ⠂ waiting...
error /Users/hequ/Projects/omat/yarn/node_modules/fsevents: Command failed.
Exit code: 1
Command: sh
Arguments: -c node install
Directory: /Users/hequ/Projects/omat/yarn/node_modules/fsevents
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | darwin | x64
node-pre-gyp info check checked for "/Users/hequ/Projects/omat/yarn/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" (not found)
node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
node-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v57 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/hequ/Projects/omat/yarn/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:77:29)
node-pre-gyp ERR! stack at emitOne (events.js:115:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:210:7)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:195:12)
node-pre-gyp ERR! stack at onErrorNT (internal/child_process.js:366:16)
node-pre-gyp ERR! stack at _combinedTickCallback (internal/process/next_tick.js:102:11)
node-pre-gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:161:9)
node-pre-gyp ERR! System Darwin 16.6.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/8.1.4/bin/node" "/Users/hequ/Projects/omat/yarn/node_modules/fsevents/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/hequ/Projects/omat/yarn/node_modules/fsevents
node-pre-gyp ERR! node -v v8.1.4
node-pre-gyp ERR! node-pre-gyp -v v0.6.33
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
tarballがないようです:
hequ @ MacBook-Pro ~/Projects/omat/yarn
└─ $ ▶ wget https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
--2017-07-18 13:21:30-- https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
Resolving fsevents-binaries.s3-us-west-2.amazonaws.com... 52.218.192.81
Connecting to fsevents-binaries.s3-us-west-2.amazonaws.com|52.218.192.81|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-07-18 13:21:31 ERROR 404: Not Found.
ええ、ファイルは存在しないようです。 これがYarnの障害なのか、fseventの障害なのか、node-gypの障害なのかわからない。
ああ、そうだ。 fseventsgithubページから対応する問題が見つかりました。 したがって、1.1.1プリコンパイル済みバージョンはs3にはありませんが、1.1.2にはあります。
https://github.com/strongloop/fsevents/issues/181
yarn add [email protected]
試してみると、期待どおりに機能します。
ありがとう、@ hequ。 その後、問題を閉じます。 LMKを再度開く必要がある場合。
こんにちは、私はこれを閉じるべきではないと思います。
他のバージョンの糸で機能するものyarn add jest
糸で機能しないもの0.27.5
yarn add jest
これが非常に頻繁に使用されるライブラリであることを考えると、ここで何かがおかしいと思います。
特定のバージョン、つまり1.1.2を使用すると、fseventsが正しくインストールされる場合がありますが、以前は機能していたにもかかわらず、yarnで何かが変更されて機能しなくなりました。
また、前述のように、 yarn add [email protected]
0.28と0.24の糸で動作するため、何かが修正/使用されていましたが、現在brewで利用できるものが期待どおりにインストールされていません。
@codehag少なくとも私のマシンでは、yarn 0.27.4でも404エラーが発生するため、 [email protected]
インストールしても0.27.4でも0.27.5でも機能しません。
@codehagこれはfsevents
問題のようです。 これを軽減するためのヤーン側のあなたの期待は何ですか?
ええと、私は糸のあるバージョンから次のバージョンまで物事がうまくいくことを期待しています:/
0.24で再試行しました。おそらく、正しく機能しなくなったために何かが変更された可能性があります。 残念ながら、これ以上調査する時間がありません。 御時間ありがとうございます。
ええと、私は糸のあるバージョンから次のバージョンまで物事がうまくいくことを期待しています:/
それが私たちの期待であり、目標でもあります! 😀
0.24で再試行しました。おそらく、正しく機能しなくなったために何かが変更された可能性があります。 残念ながら、これ以上調査する時間がありません。 御時間ありがとうございます。
たまたま、 yarn
とfsevents
が互いに近い新しいバージョンをリリースしたので、 fsevents
'の部分の障害がYarnに起因していることは理解できます。 hequのコメントを読んで、 [email protected]
すると問題が解決するかどうかを確認してください。
なぜこれが毛糸の問題なのか、私はチャイムを鳴らしたいと思いました。 yarn add [email protected]
はまだS3から1.1.1バージョンをダウンロードしようとしているようです。 yarn cache clean
は問題を解決しません。
これが出力例です。
[18:22:17] Miles:build-tool-config > yarn add [email protected]
yarn add v0.27.5
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/1] ⠂ fsevents: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)
[-/1] ⠂ waiting...
[-/1] ⠂ waiting...
[-/1] ⠂ waiting...
warning Error running install script for optional dependency: "/Users/Miles/Sites/build-tool-config/node_modules/rollup-watch/node_modules/fsevents: Command failed.\nExit code: 1\nCommand: sh\nArguments: -c node install\nDirectory: /Users/Miles/Sites/build-tool-config/node_modules/rollup-watch/node_modules/fsevents\nOutput:\nnode-pre-gyp info it worked if it ends with ok\nnode-pre-gyp info using [email protected]\nnode-pre-gyp info using [email protected] | darwin | x64\nnode-pre-gyp info check checked for \"/Users/Miles/Sites/build-tool-config/node_modules/rollup-watch/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node\" (not found)\nnode-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz\nnode-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz\nnode-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz \nnode-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v57 ABI) (falling back to source compile with node-gyp) \nnode-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz \nnode-pre-gyp ERR! build error \nnode-pre-gyp ERR! stack Error: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)\nnode-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/Miles/Sites/build-tool-config/node_modules/rollup-watch/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:77:29)\nnode-pre-gyp ERR! stack at emitOne (events.js:115:13)\nnode-pre-gyp ERR! stack at ChildProcess.emit (events.js:210:7)\nnode-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)\nnode-pre-gyp ERR! stack at onErrorNT (internal/child_process.js:374:16)\nnode-pre-gyp ERR! stack at _combinedTickCallback (internal/process/next_tick.js:138:11)\nnode-pre-gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:180:9)\nnode-pre-gyp ERR! System Darwin 16.6.0\nnode-pre-gyp ERR! command \"/usr/local/Cellar/node/8.2.1/bin/node\" \"/Users/Miles/Sites/build-tool-config/node_modules/rollup-watch/node_modules/fsevents/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"\nnode-pre-gypsuccess Saved 0 new dependencies.
Done in 11.31s.
yarn list
を実行すると、 fsevents
が2回リストされ、固定バージョンが優先されているように見えます。
├─ [email protected]
│ ├─ anymatch@^1.3.0
│ ├─ async-each@^1.0.0
│ ├─ fsevents@^1.0.0
│ ├─ [email protected]
│ │ ├─ nan@^2.3.0
│ │ └─ node-pre-gyp@^0.6.29
│ ├─ glob-parent@^2.0.0
│ ├─ inherits@^2.0.1
│ ├─ is-binary-path@^1.0.0
│ ├─ is-glob@^2.0.0
│ ├─ [email protected]
│ │ ├─ mkdirp@^0.5.1
│ │ ├─ nopt@^4.0.1
│ │ ├─ npmlog@^4.0.2
│ │ ├─ rc@^1.1.7
│ │ ├─ request@^2.81.0
│ │ ├─ rimraf@^2.6.1
│ │ ├─ semver@^5.3.0
│ │ ├─ tar-pack@^3.4.0
│ │ └─ tar@^2.2.1
│ ├─ path-is-absolute@^1.0.0
│ └─ readdirp@^2.0.0
理由がわかりません。 Chokidarは正しく見えます: https :
だから私はそれがオプションのdepsでのYarnの問題であると信じています。
この問題は、NPM v8を使用している場合に発生し、NPMV6.10.3に切り替えることで問題を修正しました。
これは再び起こり始め、FWIWの問題です。 最新の出力:
yarn install v1.3.2
[1/5] 🔍 Validating package.json...
[2/5] 🔍 Resolving packages...
[3/5] 🚚 Fetching packages...
[4/5] 🔗 Linking dependencies...
warning " > [email protected]" has unmet peer dependency "babel-core@^6.0.0 || ^7.0.0-0".
warning " > [email protected]" has unmet peer dependency "babel-core<strong i="6">@6</strong> || 7 || ^7.0.0-alpha || ^7.0.0-beta || ^7.0.0-rc".
[5/5] 📃 Building fresh packages...
[1/5] ⠂ fsevents
[2/5] ⠂ uglifyjs-webpack-plugin
[1/5] ⠄ fsevents
[1/5] ⠈ fsevents: node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v59-darwin-x64.tar.gz
[-/5] ⠈ waiting...
[3/5] ⠈ fsevents: node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v59-darwin-x64.tar.gz
[4/5] ⠈ fsevents: node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.2/fse-v1.1.2-node-v59-darwin-x64.tar.gz
[3/5] ⠁ fsevents: [fsevents] Success: "/Users/Miles/Sites/build-tool-config/node_modules/fsevents/lib/binding/Release/node-v59-darwin-x64/fse
[4/5] ⠁ fsevents: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)
warning Error running install script for optional dependency: "/Users/Miles/Sites/build-tool-config/node_modules/sane/node_modules/fsevents: Command failed.\nExit code: 1\nCommand: node install\nArguments: \nDirectory: /Users/Miles/Sites/build-tool-config/node_modules/sane/node_modules/fsevents\nOutput:\nnode-pre-gyp info it worked if it ends with ok\nnode-pre-gyp info using [email protected]\nnode-pre-gyp info using [email protected] | darwin | x64\nnode-pre-gyp info check checked for \"/Users/Miles/Sites/build-tool-config/node_modules/sane/node_modules/fsevents/lib/binding/Release/node-v59-darwin-x64/fse.node\" (not found)\nnode-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.2/fse-v1.1.2-node-v59-darwin-x64.tar.gz\nnode-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.2/fse-v1.1.2-node-v59-darwin-x64.tar.gz\nnode-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.2/fse-v1.1.2-node-v59-darwin-x64.tar.gz \nnode-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v59 ABI) (falling back to source compile with node-gyp) \nnode-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.2/fse-v1.1.2-node-v59-darwin-x64.tar.gz \nnode-pre-gyp ERR! build error \nnode-pre-gyp ERR! stack Error: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)\nnode-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/Miles/Sites/build-tool-config/node_modules/sane/node_modules/node-pre-gyp/lib/util/compile.js:77:29)\nnode-pre-gyp ERR! stack at ChildProcess.emit (events.js:159:13)\nnode-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:207:12)\nnode-pre-gyp ERR! stack at onErrorNT (internal/child_process.js:389:16)\nnode-pre-gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:152:19)\nnode-pre-gyp ERR! System Darwin 17.3.0\nnode-pre-gyp ERR! command \"/usr/local/Cellar/node/9.3.0_1/bin/node\" \"/Users/Miles/Sites/build-tool-config/node_modules/sane/node_modules/fsevents/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"\nnode-pre-gyp ERR! cwd /Users/Miles/Sites/build-tool-config/node_modules/sane/node_modules/fsevents\nnode-pre-gyp ERR! node -v v9.3.0\nnode-pre-gyp ERR! node-pre-gyp -v v0.6.37\nnode-pre-gyp ERR! not ok \nFailed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)"
info This module is OPTIONAL, you can safely ignore this error
warning Error running install script for optional dependency: "/Users/Miles/Sites/build-tool-config/node_modules/watchpack/node_modules/fsevents: Command failed.\nExit code: 1\nCommand: node install\nArguments: \nDirectory: /Users/Miles/Sites/build-tool-config/node_modules/watchpack/node_modules/fsevents\nOutput:\nnode-pre-gyp info it worked if it ends with ok\nnode-pre-gyp info using [email protected]\nnode-pre-gyp info using [email protected] | darwin | x64\nnode-pre-gyp info check checked for \"/Users/Miles/Sites/build-tool-config/node_modules/watchpack/node_modules/fsevents/lib/binding/Release/node-v59-darwin-x64/fse.node\" (not found)\nnode-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v59-darwin-x64.tar.gz\nnode-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v59-darwin-x64.tar.gz\nnode-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v59-darwin-x64.tar.gz \nnode-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v59 ABI) (falling back to source compile with node-gyp) \nnode-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v59-darwin-x64.tar.gz \nnode-pre-gyp ERR! build error \nnode-pre-gyp ERR! stack Error: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)\nnode-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/Miles/Sites/build-tool-config/node_modules/watchpack/node_modules/node-pre-gyp/lib/util/compile.js:77:29)\nnode-pre-gyp ERR! stack at ChildProcess.emit (events.js:159:13)\nnode-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:207:12)\nnode-pre-gyp ERR! stack at onErrorNT (internal/child_process.js:389:16)\nnode-pre-gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:152:19)\nnode-pre-gyp ERR! System Darwin 17.3.0\nnode-pre-gyp ERR! command \"/usr/local/Cellar/node/9.3.0_1/bin/node\" \"/Users/Miles/Sites[-/5] ⠐ waiting...
[-/5] ⠂ waiting...
[-/5] ⠂ waiting...
[-/5] ⠄ waiting...
[-/5] ⠄ waiting...
^C/5] ⠄ weak
ロールバック、再インストール、再構築、およびバージョン変更の量は問題を解決していません。
やあ! そのため、新しいラップトップにリポジトリをインストールする必要がありました。これが私にとってうまくいったことです。
Homebrewを使用して糸をインストールしました
私が実行しているラップトップで:
node: 9.5.0
yarn: 1.3.2
ヤーンインストールを実行しようとしましたが、誰もが上に貼り付けたのと同じエラーが発生しました。 次に、リポジトリ内のノードモジュールを削除しました。
そして、走っyarn add fsevents
インストールした^1.1.3
直接
次に、 yarn install
再度実行すると、すべてが最新であり、すべてのノードモジュールが再表示されたと考えられたようです。
次に、プロジェクトをコンパイルして、期待どおりに実行しました。 明らかに理想的ではありませんが、うまくいきました。
Macで開発しているが、ビルド/実行中またはLinuxの場合、1.1.3バージョンをoptionalDependencies
直接追加すると修正されます。
誰かを助けることができる場合に備えて、これをここに残します:
https://github.com/nodejs/node-gyp/issues/809#issuecomment -473261194
すべてのアップグレードに問題がない場合、おそらく古いバージョンのものである場合は、 yarn upgrade
試してください:)
新しいワークスペースを追加した後、これに遭遇しました-ノード:12.3.1、ヤーン:1.16.0、レルナ:3.13.3
私にとっての解決策はyarn cache clean && yarn
私は複数の提案された解決策の組み合わせをしなければなりませんでした:
yarn cache clean && yarn upgrade && yarn
それがトリックでした。 expo install expo-notifications
を実行して、 Expoプロジェクトに依存関係をインストールしようとしました。 私はすでに削除していたnode_modules
して実行yarn install
が、何らかの理由でまだ課題がありました。 キャッシュが原因のようです。
ノードバージョンをnpm install -g [email protected]
でダウングレードしましたが、機能しています
ヤーンキャッシュクリーン&&ヤーンアップグレード&&ヤーン
ありがとう、@ squatto。 NodeのLTSバージョン(10.x-> 12.x)にアップグレードしたところ、この問題が発生しました(Expoプロジェクトでも)が、ソリューションは機能しました。 👍
誰かがこのエラーを受け取った場合はno-xcode-or-clt-version-detected-macos
これに従ってください:
https://medium.com/flawless-app-stories/gyp-no-xcode-or-clt-version-detected-macos-catalina-anansewaa-38b536389e8d
最も参考になるコメント
私は複数の提案された解決策の組み合わせをしなければなりませんでした:
yarn cache clean && yarn upgrade && yarn
それがトリックでした。
expo install expo-notifications
を実行して、 Expoプロジェクトに依存関係をインストールしようとしました。 私はすでに削除していたnode_modules
して実行yarn install
が、何らかの理由でまだ課題がありました。 キャッシュが原因のようです。