随着Catalina的公开测试版发布,人们正在测试应用程序,以确保它们可以在公开发布时正常工作。我遇到了Homebridge for ISY的问题(这是与Insteon设备进行交互的更强大的方式),但不确定是否需要解决此问题。
运行时:sudo npm install -g github:pradeepmouli/homebridge-isy-js
输出以下内容:
npm ERR! prepareGitDep 1>
npm ERR! prepareGitDep > curve25519-n@1.4.0 install /Users/hidden/.npm/_cacache/tmp/git-clone-33161bfb/node_modules/curve25519-n
npm ERR! prepareGitDep > node-gyp rebuild
npm ERR! prepareGitDep
npm ERR! prepareGitDep
npm ERR! prepareGitDep 2> npm WARN install Usage of the
-dev option is deprecated. Use
-only = dev instead.
npm ERR! prepareGitDep gyp ERR! configure error
npm ERR! prepareGitDep gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/hidden/.npm/_cacache/tmp/git-clone-33161bfb/node_modules/curve25519-n/build'
npm ERR! prepareGitDep gyp ERR! System Darwin 19.0.0
npm ERR! prepareGitDep gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! prepareGitDep gyp ERR! cwd /Users/hidden/.npm/_cacache/tmp/git-clone-33161bfb/node_modules/curve25519-n
npm ERR! prepareGitDep gyp ERR! node -v v10.15.3
npm ERR! prepareGitDep gyp ERR! node-gyp -v v3.8.0
npm ERR! prepareGitDep gyp ERR! not ok
npm ERR! prepareGitDep npm ERR! code ELIFECYCLE
npm ERR! prepareGitDep npm ERR! errno 1
npm ERR! prepareGitDep npm ERR! curve25519-n@1.4.0 install:
node-gyp重建`
npm ERR! prepareGitDep npm错误!退出状态1
npm ERR! prepareGitDep npm错误!
npm ERR! prepareGitDep npm错误!在curve25519-n@1.4.0安装脚本处失败。
npm ERR! prepareGitDep npm错误! npm可能不是问题。上面可能还有其他日志记录输出。
npm ERR! prepareGitDep
npm ERR! prepareGitDep npm错误!可以在以下位置找到此运行的完整日志:
npm ERR! prepareGitDep npm错误! /Users/hidden/.npm/_logs/2019-07-09T12_25_48_606Z-debug.log
npm ERR! prepareGitDep
npm ERR!过早关闭
npm错误!可以在以下位置找到此运行的完整日志: npm ERR! / Users / hidden / .npm / _logs / 2019-07-09T12_25_48_669Z-debug.log`
该日志文件显示以下内容:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'github:pradeepmouli/homebridge-isy-js' ]
2 info using npm@6.9.2
3 info using node@v10.15.3
4 verbose npm-session 6f4f910fd5b4904a
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 verbose prepareGitDep undefined: installing devDeps and running prepare script.
8 error prepareGitDep 1>
8 error prepareGitDep > curve25519-n@1.4.0 install /Users/hidden/.npm/_cacache/tmp/git-clone-3b2c6b6f/node_modules/curve25519-n
8 error prepareGitDep > node-gyp rebuild
9 error prepareGitDep 2> npm WARN install Usage of the
-dev option is deprecated. Use
-only = dev instead.
9 error prepareGitDep gyp ERR! configure error
9 error prepareGitDep gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/hidden/.npm/_cacache/tmp/git-clone-3b2c6b6f/node_modules/curve25519-n/build'
9 error prepareGitDep gyp ERR! System Darwin 19.0.0
9 error prepareGitDep gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
9 error prepareGitDep gyp ERR! cwd /Users/hidden/.npm/_cacache/tmp/git-clone-3b2c6b6f/node_modules/curve25519-n
9 error prepareGitDep gyp ERR! node -v v10.15.3
9 error prepareGitDep gyp ERR! node-gyp -v v3.8.0
9 error prepareGitDep gyp ERR! not ok
9 error prepareGitDep npm ERR! code ELIFECYCLE
9 error prepareGitDep npm ERR! errno 1
9 error prepareGitDep npm ERR! curve25519-n@1.4.0 install:
node-gyp重建
9 error prepareGitDep npm ERR! Exit status 1
9 error prepareGitDep npm ERR!
9 error prepareGitDep npm ERR! Failed at the curve25519-n@1.4.0 install script.
9 error prepareGitDep npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
9 error prepareGitDep
9 error prepareGitDep npm ERR! A complete log of this run can be found in:
9 error prepareGitDep npm ERR! /Users/hidden/.npm/_logs/2019-06-28T21_10_02_917Z-debug.log
10 silly fetchPackageMetaData error for github:pradeepmouli/homebridge-isy-js premature close
11 timing stage:rollbackFailedOptional Completed in 0ms
12 timing stage:runTopLevelLifecycles Completed in 17155ms
13 verbose stack Error: premature close
13 verbose stack at PassThrough.onclose (/usr/local/lib/node_modules/npm/node_modules/end-of-stream/index.js:47:67)
13 verbose stack at PassThrough.emit (events.js:194:15)
13 verbose stack at emitCloseNT (internal/streams/destroy.js:59:8)
13 verbose stack at process._tickCallback (internal/process/next_tick.js:63:19)
14 verbose cwd /Users/hidden
15 verbose Darwin 19.0.0
16 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "github:pradeepmouli/homebridge-isy-js"
17 verbose node v10.15.3
18 verbose npm v6.9.2
19 error premature close
20 verbose exit [ 1, true ]
原来负责包装的人不久前就放弃了它。此人接管了该人,但与上一个人不同,没有问题部分可提供错误反馈或讨论这些问题,因此我想在这里尝试。最初,Xcode开发工具没有安装就出现了问题。但是仍然没有运气。然后尝试再次安装最新版本的Xcode和开发工具,但没有成功。也许我需要告诉终端使用Xcode beta,因为也许它试图使用旧版本?第16行提到在徽标中运行命令,但想在尝试运行任何此类命令之前询问。 Node-gyp也会通过错误进行重建。