-
Notifications
You must be signed in to change notification settings - Fork 30
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
Does not seem to work with single package installs #1
Comments
Please have a look at this comment in the thread mentioned above as well: |
The recommended way to use it is via npx: {
"scripts": {
"preinstall": "npx only-allow pnpm"
}
} |
@zkochan I am doing exactly that and it's not working at any level (workspace root or specific package). Eg: With the preinstall script in the workspace root allowing only pnpm I try the following: ❯ npm i uuid
+ [email protected]
added 134 packages from 86 contributors, removed 42 packages, updated 17 packages and audited 151 packages in 4.198s
23 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities Node: 14.15.1 |
Same issue. The preinstall script is apparently not being run for single-package install commands, such as Here is an npm RFC on the subject: npm/rfcs#325 |
For me neither single package nor multiple not working. |
I tried this with a new project and I get the following result. Please look especially at the
npm i
below: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/
The text was updated successfully, but these errors were encountered: