Skip to content

安装失败 #30

@harichen

Description

@harichen

(base) ➜ scripts git:(master) ./install_mpvjs.sh
npm ERR! prepareGitDep 1>
npm ERR! prepareGitDep > husky@3.1.0 install /Users/chenjianhong/.npm/_cacache/tmp/git-clone-d7a2a807/node_modules/husky
npm ERR! prepareGitDep > node husky install
npm ERR! prepareGitDep
npm ERR! prepareGitDep husky > Setting up git hooks
npm ERR! prepareGitDep ENOENT: no such file or directory, mkdir '.git/hooks'
npm ERR! prepareGitDep husky > Failed to install
npm ERR! prepareGitDep
npm ERR! prepareGitDep > sqlite3@4.1.1 install /Users/chenjianhong/.npm/_cacache/tmp/git-clone-d7a2a807/node_modules/sqlite3
npm ERR! prepareGitDep > node-pre-gyp install --fallback-to-build
npm ERR! prepareGitDep
npm ERR! prepareGitDep Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/chenjianhong/.npm/_cacache/tmp/git-clone-d7a2a807/node_modules/sqlite3/lib/binding/node-v83-darwin-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/Users/chenjianhong/.npm/_cacache/tmp/git-clone-d7a2a807/node_modules/sqlite3/lib/binding/node-v83-darwin-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
npm ERR! prepareGitDep
npm ERR! prepareGitDep 2> npm WARN install Usage of the --dev option is deprecated. Use --also=dev instead.
npm ERR! prepareGitDep npm WARN deprecated @babel/polyfill@7.12.1: 🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.
npm ERR! prepareGitDep npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm ERR! prepareGitDep npm WARN deprecated core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! prepareGitDep npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm ERR! prepareGitDep npm WARN deprecated node-pre-gyp@0.11.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
npm ERR! prepareGitDep npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
npm ERR! prepareGitDep npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm ERR! prepareGitDep node-pre-gyp WARN Using request for node-pre-gyp https download
npm ERR! prepareGitDep node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.1.1/node-v83-darwin-x64.tar.gz
npm ERR! prepareGitDep node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.1.1 and node@14.15.3 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
npm ERR! prepareGitDep No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
npm ERR! prepareGitDep No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
npm ERR! prepareGitDep No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
npm ERR! prepareGitDep
npm ERR! prepareGitDep
npm ERR! prepareGitDep
npm ERR! prepareGitDep gyp: No Xcode or CLT version detected!
npm ERR! prepareGitDep gyp ERR! configure error
npm ERR! prepareGitDep gyp ERR! stack Error: gyp failed with exit code: 1
npm ERR! prepareGitDep gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
npm ERR! prepareGitDep gyp ERR! stack at ChildProcess.emit (events.js:315:20)
npm ERR! prepareGitDep gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
npm ERR! prepareGitDep gyp ERR! System Darwin 19.6.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" "configure" "--fallback-to-build" "--module=/Users/chenjianhong/.npm/_cacache/tmp/git-clone-d7a2a807/node_modules/sqlite3/lib/binding/node-v83-darwin-x64/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/Users/chenjianhong/.npm/_cacache/tmp/git-clone-d7a2a807/node_modules/sqlite3/lib/binding/node-v83-darwin-x64" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83"
npm ERR! prepareGitDep gyp ERR! cwd /Users/chenjianhong/.npm/_cacache/tmp/git-clone-d7a2a807/node_modules/sqlite3
npm ERR! prepareGitDep gyp ERR! node -v v14.15.3
npm ERR! prepareGitDep gyp ERR! node-gyp -v v5.1.0
npm ERR! prepareGitDep gyp ERR! not ok
npm ERR! prepareGitDep node-pre-gyp ERR! build error
npm ERR! prepareGitDep node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/chenjianhong/.npm/_cacache/tmp/git-clone-d7a2a807/node_modules/sqlite3/lib/binding/node-v83-darwin-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/Users/chenjianhong/.npm/_cacache/tmp/git-clone-d7a2a807/node_modules/sqlite3/lib/binding/node-v83-darwin-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
npm ERR! prepareGitDep node-pre-gyp ERR! stack at ChildProcess. (/Users/chenjianhong/.npm/_cacache/tmp/git-clone-d7a2a807/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
npm ERR! prepareGitDep node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20)
npm ERR! prepareGitDep node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1048:16)
npm ERR! prepareGitDep node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
npm ERR! prepareGitDep node-pre-gyp ERR! System Darwin 19.6.0
npm ERR! prepareGitDep node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/chenjianhong/.npm/_cacache/tmp/git-clone-d7a2a807/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
npm ERR! prepareGitDep node-pre-gyp ERR! cwd /Users/chenjianhong/.npm/_cacache/tmp/git-clone-d7a2a807/node_modules/sqlite3
npm ERR! prepareGitDep node-pre-gyp ERR! node -v v14.15.3
npm ERR! prepareGitDep node-pre-gyp ERR! node-pre-gyp -v v0.11.0
npm ERR! prepareGitDep node-pre-gyp ERR! not ok
npm ERR! prepareGitDep npm ERR! code ELIFECYCLE
npm ERR! prepareGitDep npm ERR! errno 1
npm ERR! prepareGitDep npm ERR! sqlite3@4.1.1 install: node-pre-gyp install --fallback-to-build
npm ERR! prepareGitDep npm ERR! Exit status 1
npm ERR! prepareGitDep npm ERR!
npm ERR! prepareGitDep npm ERR! Failed at the sqlite3@4.1.1 install script.
npm ERR! prepareGitDep npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! prepareGitDep
npm ERR! prepareGitDep npm ERR! A complete log of this run can be found in:
npm ERR! prepareGitDep npm ERR! /Users/chenjianhong/.npm/_logs/2022-02-18T05_44_08_625Z-debug.log
npm ERR! prepareGitDep
npm ERR! premature close

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/chenjianhong/.npm/_logs/2022-02-18T05_44_24_332Z-debug.log
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: can't open file: ../src/node_modules/mpv.js/build/Release/mpvjs.node (No such file or directory)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions