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

chore: upgrade npm #107

Merged
merged 1 commit into from
Apr 12, 2022
Merged

chore: upgrade npm #107

merged 1 commit into from
Apr 12, 2022

Conversation

ljiang-ti
Copy link
Contributor

@ljiang-ti ljiang-ti commented Apr 12, 2022

Unticketed

When I do a fresh checkout of the repo and simply run npm i, it always errors out with ERR_SOCKET_TIMEOUT. To workaround this, running the same command the 2nd+ times or use a lower version of npm (like 7.24.2) have worked for me. I normally reset my repo to a clean state by following the steps below:

  1. restore any local changes then checkout latest staging
  2. at root, run lerna clean (use this to remove any node_modules existing in individual workspace if it applies, like ./packages/content/node_modules)
  3. at root, run npm cache clear --force
  4. at root, simply remove node_modules dir

Took a closer look at it, this might have something to do with the npm version we specified via volta. Came across this similar issue being reported on npm cli repo, which is recently closed with a fix in its dependencies 😃 . And, their latest version v8.6.0 is out.

Took a shot at the version v8.6.0, which seems to work going through the repro. Also verify the followings:

  • storybook
  • test
  • template site for authentication + dev app

Copy link
Member

@chrisvariety chrisvariety left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, appreciate the initiative!

@ljiang-ti ljiang-ti merged commit d00c284 into staging Apr 12, 2022
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

Successfully merging this pull request may close these issues.

2 participants