npm离线安装依赖包


原文:https://www.jb51.net/article/151349.htm

npm install <folder> 直接从文件夹安装
npm i -g esbuild-windows-64 全局安装

起因:
npm提示 esbuild-windows-64 下载失败
yarn 一直停在.esbuild 转圈圈
或者 error An unexpected error occurred: "EPERM: operation not permitted, unlink 'D:\s\work\vite_4\node_modules\esbuild\esbuild.exe'".


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM