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
While using yarn, I want to have some kind of mechanism to prevent people from using npm install <package name>. I'd like to know if there is any way to get this done.
additional notes:
add the following codes to package.json can prevent people from using npm install
"scripts": {
"preinstall": "node -e \"if(process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('You must use Yarn to install, not NPM')\""
},
While using yarn, I want to have some kind of mechanism to prevent people from using
npm install <package name>
. I'd like to know if there is any way to get this done.additional notes:
npm install
yarnpkg/yarn#4895
The text was updated successfully, but these errors were encountered: