not installing on M1 chip
See original GitHub issueHello I am working on a repo and I want to use dotenv so I do npm i dotenv
but I get the error below. I’ve also tried with yarn
but I have the same issue.
Perhaps this may be an incompatibility with the M1 chip?
config:
MacOS BigSur 11.2.3 M1 chip
yarn: 1.22.10
kentarovadney@Kentaros-MacBook-Air discord-faucet-dusty % npm i dotenv npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated uuid@3.4.0: 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 request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm ERR! code 1 npm ERR! path /Users/kentarovadney/Desktop/code/discord-faucet-dusty/node_modules/node npm ERR! command failed npm ERR! command sh -c node installArchSpecificPackage npm ERR! npm ERR! code 1 npm ERR! npm ERR! path /Users/kentarovadney/Desktop/code/discord-faucet-dusty/node_modules/node/node_modules/node-darwin-arm64 npm ERR! npm ERR! command failed npm ERR! npm ERR! command sh -c node installArchSpecificPackage npm ERR! npm ERR! node:internal/modules/cjs/loader:944 npm ERR! npm ERR! throw err; npm ERR! npm ERR! ^ npm ERR! npm ERR! npm ERR! npm ERR! Error: Cannot find module ‘/Users/kentarovadney/Desktop/code/discord-faucet-dusty/node_modules/node/node_modules/node-darwin-arm64/installArchSpecificPackage’ npm ERR! npm ERR! at Function.Module._resolveFilename (node:internal/modules/cjs/loader:941:15) npm ERR! npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:774:27) npm ERR! npm ERR! at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12) npm ERR! npm ERR! at node:internal/main/run_main_module:17:47 { npm ERR! npm ERR! code: ‘MODULE_NOT_FOUND’, npm ERR! npm ERR! requireStack: [] npm ERR! npm ERR! } npm ERR! npm ERR! npm ERR! A complete log of this run can be found in: npm ERR! npm ERR! /Users/kentarovadney/.npm/_logs/2021-05-31T17_58_58_573Z-debug.log npm ERR! node:internal/modules/cjs/loader:944 npm ERR! throw err; npm ERR! ^ npm ERR! npm ERR! Error: Cannot find module ‘node-darwin-arm64/package.json’ npm ERR! Require stack: npm ERR! - /Users/kentarovadney/Desktop/code/discord-faucet-dusty/node_modules/node/installArchSpecificPackage.js npm ERR! at Function.Module._resolveFilename (node:internal/modules/cjs/loader:941:15) npm ERR! at Function.resolve (node:internal/modules/cjs/helpers:99:19) npm ERR! at ChildProcess.<anonymous> (/Users/kentarovadney/Desktop/code/discord-faucet-dusty/node_modules/node-bin-setup/index.js:18:27) npm ERR! at ChildProcess.emit (node:events:365:28) npm ERR! at maybeClose (node:internal/child_process:1067:16) npm ERR! at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) { npm ERR! code: ‘MODULE_NOT_FOUND’, npm ERR! requireStack: [ npm ERR! ‘/Users/kentarovadney/Desktop/code/discord-faucet-dusty/node_modules/node/installArchSpecificPackage.js’ npm ERR! ] npm ERR! }
npm ERR! A complete log of this run can be found in: npm ERR! /Users/kentarovadney/.npm/_logs/2021-05-31T17_58_59_224Z-debug.log kentarovadney@Kentaros-MacBook-Air discord-faucet-dusty %
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (2 by maintainers)
can you try installing an older version of dotenv and see if that still fails?
above issue caused this