question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

not installing on M1 chip

See original GitHub issue

Hello 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 Screen Shot 2021-05-31 at 11 10 12 AM

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:closed
  • Created 2 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
motdotlacommented, May 31, 2021

can you try installing an older version of dotenv and see if that still fails?

npm install dotenv@8.0.0
1reaction
VadneyKcommented, Jun 18, 2021

above issue caused this

Read more comments on GitHub >

github_iconTop Results From Across the Web

If an error occurred while updating or installing macOS
If an error occurred while updating or installing macOS · Check your internet connection · Install in safe mode · Install after repairing...
Read more >
Can't install macOS Ventura Problems Mac, M1 MacBook Fixed
Open Finder on Mac > Applications > Find the Downloaded MacOS file. Right-click on it, and Move to bin.
Read more >
macOS Monterey not Installing on Macbook M1? - Here's the Fix!
Check out this video for how to fix macOS not updating and the ... Sur on MacBook Pro/Air, Mac Mini, iMac which running...
Read more >
How to Install Unsupported Development Software on M1 Macs
There are a lot of pros when it comes to new Apple M1 chips; however – there are some disadvantages that need to...
Read more >
cannot install edgeR on M1 Mac
Until binary package distribution for M1 mac is undertaken -- and we don't have a date for this yet -- M1 mac users...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found