Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

前端---问题记录 #102

Open
AronChung opened this issue Feb 25, 2021 · 0 comments
Open

前端---问题记录 #102

AronChung opened this issue Feb 25, 2021 · 0 comments

Comments

@AronChung
Copy link
Owner

npm install突然不可使用,报:

> node-pty@0.10.0-beta9 install /Users/aronchung/WebstormProjects/realtimedatasync-fe/node_modules/node-pty
> node scripts/install.js

No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 20.1.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/aronchung/WebstormProjects/realtimedatasync-fe/node_modules/node-pty
gyp ERR! node -v v12.18.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok

> lz-lightspeed-fe@1.0.0 postinstall /Users/aronchung/WebstormProjects/realtimedatasync-fe
> umi g tmp

npm WARN @umijs/plugin-layout@0.11.13 requires a peer of @ant-design/pro-layout@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN babel-plugin-dva-hmr@0.4.2 requires a peer of redbox-react@1.x but none is installed. You must install peer dependencies yourself.
npm WARN dva-immer@0.4.19 requires a peer of dva@^2.5.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN dva-loading@3.0.20 requires a peer of dva-core@^1.1.0 | ^1.5.0-0 | ^1.6.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-unicorn@20.1.0 requires a peer of eslint@>=7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-template-visitor@2.2.1 requires a peer of eslint@>=7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN rc-picker@1.10.7 requires a peer of dayjs@^1.8.18 but none is installed. You must install peer dependencies yourself.
npm WARN @typescript-eslint/eslint-plugin@1.13.0 requires a peer of @typescript-eslint/parser@^1.9.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-airbnb@17.1.1 requires a peer of eslint-plugin-react@^7.14.2 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-pty@0.10.0-beta9 (node_modules/node-pty):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-pty@0.10.0-beta9 install: `node scripts/install.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

up to date in 30.173s

解决方法:
删除已经安装的CommandLineTools

sudo rm -rf $(xcode-select -p)
sudo xcode-select --install

同意条款选择同意,会提示系统更新一并同意。


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant