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

npm install fails on apple silicon #751

Closed
adrienjoly opened this issue Oct 29, 2023 · 0 comments
Closed

npm install fails on apple silicon #751

adrienjoly opened this issue Oct 29, 2023 · 0 comments
Assignees
Labels

Comments

@adrienjoly
Copy link
Member

Describe the bug

Now using node v18.17.1 (npm v9.6.7)
$ npm i
npm WARN deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin.
npm WARN deprecated uuid@3.3.3: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated string-similarity@4.0.4: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated natives@1.1.6: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x.
npm ERR! code 7
npm ERR! path /Users/adrienjoly/code/openwhyd/openwhyd/node_modules/argon2
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp@1.0.11
npm ERR! node-pre-gyp info using node@18.17.1 | darwin | arm64
npm ERR! node-pre-gyp ERR! UNCAUGHT EXCEPTION 
npm ERR! node-pre-gyp ERR! stack SyntaxError: /Users/adrienjoly/code/openwhyd/openwhyd/node_modules/node-fetch/node_modules/tr46/lib/mappingTable.json: Unexpected end of JSON input
npm ERR! node-pre-gyp ERR! stack     at parse (<anonymous>)
npm ERR! node-pre-gyp ERR! stack     at Module._extensions..json (node:internal/modules/cjs/loader:1324:39)
npm ERR! node-pre-gyp ERR! stack     at Module.load (node:internal/modules/cjs/loader:1119:32)
npm ERR! node-pre-gyp ERR! stack     at Module._load (node:internal/modules/cjs/loader:960:12)
npm ERR! node-pre-gyp ERR! stack     at Module.require (node:internal/modules/cjs/loader:1143:19)
npm ERR! node-pre-gyp ERR! stack     at require (node:internal/modules/cjs/helpers:121:18)
npm ERR! node-pre-gyp ERR! stack     at Object.<anonymous> (/Users/adrienjoly/code/openwhyd/openwhyd/node_modules/node-fetch/node_modules/tr46/index.js:4:20)
npm ERR! node-pre-gyp ERR! stack     at Module._compile (node:internal/modules/cjs/loader:1256:14)
npm ERR! node-pre-gyp ERR! stack     at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
npm ERR! node-pre-gyp ERR! stack     at Module.load (node:internal/modules/cjs/loader:1119:32)
npm ERR! node-pre-gyp ERR! System Darwin 23.0.0
npm ERR! node-pre-gyp ERR! command "/Users/adrienjoly/.nvm/versions/node/v18.17.1/bin/node" "/Users/adrienjoly/code/openwhyd/openwhyd/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd /Users/adrienjoly/code/openwhyd/openwhyd/node_modules/argon2
npm ERR! node-pre-gyp ERR! node -v v18.17.1
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.11

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@adrienjoly adrienjoly self-assigned this Oct 29, 2023
@adrienjoly adrienjoly added the bug label Oct 29, 2023
adrienjoly pushed a commit that referenced this issue Oct 29, 2023
## [1.58.1](v1.58.0...v1.58.1) (2023-10-29)

### Bug Fixes

* **deps:** remove argon2 ([a13479b](a13479b)), closes [#751](#751)
* **tests:** update approval test snapshots ([6c251bc](6c251bc))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant