-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
yarn test
gets broken when I install antd
package in my project. wat?! o_O
#4131
Comments
@dexterHD I've had this problem in the past and am currently trying to remember the cause and how I solved it. The steps you've provided do not reproduce the error for me. Is there anything else you've done to the demo app (e.g. adding Typescript or a different version of jest manually)? posting your EDIT: I'd also check this out if you haven't already https://ant.design/docs/react/use-with-create-react-app |
@rpalermodrums I have read this guide but there is nothing about tests and/or watcher problems, so here is my repository witch doesn't work (https://github.com/DexterHD/create-react-app-issue-4131), but if I remove I also tried to use yarn install v1.5.1
info No lockfile found.
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning "antd > [email protected]" has incorrect peer dependency "react@^0.14.0 || ^15.0.1".
warning "antd > [email protected]" has incorrect peer dependency "react-dom@^0.14.0 || ^15.0.1".
warning "antd > react-slick > [email protected]" has unmet peer dependency "jquery@>=1.8.0".
warning "react-app-rewire-less > [email protected]" has unmet peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0".
[4/4] 📃 Building fresh packages...
[-/3] ⢀ waiting...
[-/3] ⢀ waiting...
[3/3] ⢀ fsevents: [email protected] | darwin | x64
[-/3] ⢀ waiting...
warning Error running install script for optional dependency: "/Users/dexter/Projects/go/src/gitlab.com/hiteam/create-react-app-antd/node_modules/react-scripts/node_modules/fsevents: Command failed.
Exit code: 1
Command: sh
Arguments: -c node install
Directory: /Users/dexter/Projects/go/src/gitlab.com/hiteam/create-react-app-antd/node_modules/react-scripts/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/dexter/Projects/go/src/gitlab.com/hiteam/create-react-app-antd/node_modules/react-scripts/node_modules/fsevents/lib/binding/Release/node-v59-darwin-x64/fse.node\" (not found)
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
node-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
node-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
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v59 ABI, unknown) (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.2/fse-v1.1.2-node-v59-darwin-x64.tar.gz
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp ERR! configure error
gyp ERR! stack Error: Python executable \"/usr/local/bin/python\" is v3.6.4, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at PythonFinder.failPythonVersion (/usr/local/Cellar/node/9.8.0/libexec/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:492:19)
gyp ERR! stack at PythonFinder.<anonymous> (/usr/local/Cellar/node/9.8.0/libexec/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:474:14)
gyp ERR! stack at ChildProcess.exithandler (child_process.js:265:7)
gyp ERR! stack at ChildProcess.emit (events.js:180:13)
gyp ERR! stack at maybeClose (internal/child_process.js:936:16)
gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:353:11)
gyp ERR! stack at Socket.emit (events.js:180:13)
gyp ERR! stack at Pipe._handle.close [as _onclose] (net.js:538:12)
gyp ERR! System Darwin 17.4.0
gyp ERR! command \"/usr/local/Cellar/node/9.8.0/bin/node\" \"/usr/local/Cellar/node/9.8.0/libexec/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"configure\" \"--fallback-to-build\" \"--module=/Users/dexter/Projects/go/src/gitlab.com/hiteam/create-react-app-antd/node_modules/react-scripts/node_modules/fsevents/lib/binding/Release/node-v59-darwin-x64/fse.node\" \"--module_name=fse\" \"--module_path=/Users/dexter/Projects/go/src/gitlab.com/hiteam/create-react-app-antd/node_modules/react-scripts/node_modules/fsevents/lib/binding/Release/node-v59-darwin-x64\"
gyp ERR! cwd /Users/dexter/Projects/go/src/gitlab.com/hiteam/create-react-app-antd/node_modules/react-scripts/node_modules/fsevents
gyp ERR! node -v v9.8.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp configure --fallback-to-build --module=/Users/dexter/Projects/go/src/gitlab.com/hiteam/create-react-app-antd/node_modules/react-scripts/node_modules/fsevents/lib/binding/Release/node-v59-darwin-x64/fse.node --module_name=fse --module_path=/Users/dexter/Projects/go/src/gitlab.com/hiteam/create-react-app-antd/node_modules/react-scripts/node_modules/fsevents/lib/binding/Release/node-v59-darwin-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/dexter/Projects/go/src/gitlab.com/hiteam/create-react-app-antd/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:180:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:936:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
node-pre-gyp ERR! System Darwin 17.4.0
node-pre-gyp ERR! command \"/usr/local/Cellar/node/9.8.0/bin/node\" \"/Users/dexter/Projects/go/src/gitlab.com/hiteam/create-react-app-antd/node_modules/react-scripts/node_modules/fsevents/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"
node-pre-gyp ERR! cwd /Users/dexter/Projects/go/src/gitlab.com/hiteam/create-react-app-antd/node_modules/react-scripts/node_modules/fsevents
node-pre-gyp ERR! node -v v9.8.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39 |
It's strange because I didn't have watchman installed, but this helps me: |
Closing since resolved per previous comment. |
Is this a bug report?
Yes
Did you try recovering your dependencies?
Yes
Which terms did you search for in User Guide?
Troubleshoting section
npm test hangs on macOS Sierra
didn't help me.Environment
node -v
: v9.8.0npm -v
: 5.6.0yarn --version
(if you use Yarn): 1.5.1npm ls react-scripts
(if you haven’t ejected): [email protected]Operating system: macOS Sierra 10.13.3
Browser and version (if relevant): Google Chrome 64.0.3282.186
Steps to Reproduce
Expected Behavior
All must work fine. Because it's nonscence when installing some library have influence to environment.
Actual Behavior
Got an error:
The text was updated successfully, but these errors were encountered: