You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 22, 2026. It is now read-only.
I tried this with a new project and I get the following result. Please look especially at the npm i below:
PS D:\dev> npm run preinstall
> @ preinstall D:\dev
> npx only-allow pnpm
npx: installed 26 in 8.997s
╔═════════════════════════════════════════════════════════════╗
║ ║
║ Use "pnpm install"forinstallationin this project. ║
║ ║
║ If you don't have pnpm, install it via "npm i -g pnpm". ║║ For more details, go to https://pnpm.js.org/ ║║ ║╚═════════════════════════════════════════════════════════════╝npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! @ preinstall: `npx only-allow pnpm`npm ERR! Exit status 1npm ERR!npm ERR! Failed at the @ preinstall script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:npm ERR! C:\******\AppData\Roaming\npm-cache\_logs\2020-06-27T22_06_14_067Z-debug.logPS D:\dev> npm i dotenvnpm notice created a lockfile as package-lock.json. You should commit this file.+ dotenv@8.2.0added 425 packages from 258 contributors and audited 444 packages in 207.81s75 packages are looking for funding run `npm fund` for detailsfound 0 vulnerabilities
Versions:
node: 14.4.0
npm: 6.14.5
OS: Windows 10 x64
I tried this with a new project and I get the following result. Please look especially at the
npm ibelow:Versions:
node: 14.4.0
npm: 6.14.5
OS: Windows 10 x64
Perhaps you might like to look (or perhaps have already looked) at the thread here:
https://stackoverflow.com/questions/41076172/force-yarn-install-instead-of-npm-install-for-node-module/