Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Tutorial does not work on mac with latest node. #3723

Closed
davidradl opened this issue Feb 19, 2020 · 4 comments
Closed

Tutorial does not work on mac with latest node. #3723

davidradl opened this issue Feb 19, 2020 · 4 comments
Labels
status: inactive Will close if there's no further activity within a given time

Comments

@davidradl
Copy link

React tutorial does not work with latest node on mac. I raised #5395 on the carbon repo - because the link at the side of the tutorial led me there.

I have node v13.7.0 and am running a on a mac. I followed the instruction on you web site https://www.carbondesignsystem.com/tutorial/react/step-1. This is such a bad first impression of Carbon. I was hoping to pick up a recent set of dependancies that I would use as a the basis of a project, but it seems the levels of software associated with this tutorial are very backlevel. I notice Carbon has just supported node 12 in #5391.

When I enter yarn, it fails I get errors:
"% yarn

yarn install v1.22.0

[1/4] 🔍 Resolving packages...

[2/4] 🚚 Fetching packages...

[3/4] 🔗 Linking dependencies...

[4/4] 🔨 Building fresh packages...

[1/4] ⠂ fsevents

[2/4] ⠂ fsevents

[-/4] ⠂ waiting...

warning Error running install script for optional dependency: "/Users/davidradley/carbon-tutorial/node_modules/react-scripts/node_modules/fsevents: Command failed.

Exit code: 1

Command: node install

Arguments:

Directory: /Users/davidradley/carbon-tutorial/node_modules/react-scripts/node_modules/fsevents

Output:

node-pre-gyp info it worked if it ends with ok

node-pre-gyp info using node-pre-gyp@0.10.0

node-pre-gyp info using node@13.7.0 | darwin | x64

node-pre-gyp info check checked for "/Users/davidradley/carbon-tutorial/node_modules/react-scripts/node_modules/fsevents/lib/binding/Release/node-v79-darwin-x64/fse.node" (not found)"

I deleted yarn.lock and get
"yarn
yarn install v1.22.0
info No lockfile found.
[1/4] 🔍 Resolving packages...
warning react-scripts > fsevents@1.2.4: Way too old
warning react-scripts > react-app-polyfill > core-js@2.6.4: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning react-scripts > workbox-webpack-plugin > babel-runtime > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning react-scripts > workbox-webpack-plugin > workbox-build > joi@11.4.0: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
warning react-scripts > eslint > file-entry-cache > flat-cache > circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
warning react-scripts > jest > jest-cli > jest-config > babel-core > babel-register > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning react-scripts > jest > jest-cli > prompts > kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit https://github.com/lukeed/kleur/releases/tag/v3.0.0\ for migration path(s).
warning react-scripts > workbox-webpack-plugin > workbox-build > joi > hoek@4.2.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
warning react-scripts > workbox-webpack-plugin > workbox-build > joi > topo@2.0.2: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
warning react-scripts > workbox-webpack-plugin > workbox-build > joi > topo > hoek@4.2.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
warning react-scripts > jest > jest-cli > jest-environment-jsdom > jsdom > left-pad@1.3.0: use String.prototype.padStart()
warning react-scripts > jest > jest-cli > jest-environment-jsdom > jsdom > request@2.88.2: request has been deprecated, see request/request#3142
warning @commitlint/cli > babel-polyfill > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning node-sass > request@2.88.2: request has been deprecated, see request/request#3142
warning node-sass > node-gyp > request@2.88.2: request has been deprecated, see request/request#3142
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 🔨 Building fresh packages...
"

Additional information
Screenshots or code
Notes
@davidradl davidradl added the type: bug 🐛 label 3 hours ago
@davidradl

Author
davidradl commented 32 minutes ago
I notice #5391 has just gone in. I assume that the tutorial will be updated in due course.

@davidradl

I am closing this issue - I will raise against the carbon tutorial repo.

Attach files by dragging & dropping, selecting or pasting them.
Remember, contributions to this repository should follow its contributing guidelines and code of conduct.
Assignees
No one assigned
Labels
type: bug 🐛
Projects
None yet
Milestone
No milestone
Linked pull requests
Successfully merging a pull request may close this issue.

None yet
Notifications
Customize
You’re receiving notifications because you authored the thread.
1 participant
@davidradl
© 2020 GitHub, Inc.
Terms
Privacy
Security
Status
Help
Contact GitHub
Pricing
API
Training
Blog
About

What browser are you working in? Chrome.

@dalehille
Copy link

@davidradl I had the same problems but was able to get step 1 running by doing this.

rm -fr node_modules
rm yarn.lock

add this to package.json ( from nodejs/node#27389 )
"resolutions": { "**/fsevents": "^1.2.9" },

yarn

@hintcnuie
Copy link

yes, I've met this issue too, it seems there is fsevent bug and fixed in 1.2.9.
And I changed to Node 8.17 and this issue not appear from my side.

asudoh added a commit to asudoh/carbon-tutorial that referenced this issue Mar 23, 2020
Upgrade `react-scripts` to `3.x` given the latest `2.x` of
`react-scripts` (though optinally) depends on `1.2.4` version of
`fsevents` that is incompatible with Node 12.

Fixes carbon-design-system#3723.
@stale
Copy link

stale bot commented Apr 23, 2020

We've marked this as stale because there hasn't been any activity for 30 days. If there's no further activity on this issue in the next three days then we'll close it. You can keep the conversation going with just a short comment.

@stale stale bot added the status: inactive Will close if there's no further activity within a given time label Apr 23, 2020
@stale
Copy link

stale bot commented Apr 26, 2020

As there's been no activity since this issue was marked as stale, we are auto-closing it.

@stale stale bot closed this as completed Apr 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: inactive Will close if there's no further activity within a given time
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants