admin管理员组文章数量:1123848
Each time I try to install the following packages multer-storage-cloudinary
, bcrypt
, cloudinary
I gets the error as below.
I have tried uninstalling node and cleaning caches but none is working
PS C:\Users\User\Documents\CommerceApi\api> npm install --save multer-storage-cloudinary
npm warn deprecated [email protected]: You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers
strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone
for joining me in this bet against the odds. Be excellent to each other.
npm warn deprecated
npm warn deprecated (For a CapTP with native promises, see @endo/eventual-send and @endo/captp)
npm error code ERR_INVALID_ARG_TYPE
npm error The "file" argument must be of type string. Received undefined
npm error A complete log of this run can be found in: C:\Users\User\AppData\Local\npm-cache\_logs\2025-01-10T03_36_27_845Z-debug-0.log
Each time I try to install the following packages multer-storage-cloudinary
, bcrypt
, cloudinary
I gets the error as below.
I have tried uninstalling node and cleaning caches but none is working
PS C:\Users\User\Documents\CommerceApi\api> npm install --save multer-storage-cloudinary
npm warn deprecated [email protected]: You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers
strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone
for joining me in this bet against the odds. Be excellent to each other.
npm warn deprecated
npm warn deprecated (For a CapTP with native promises, see @endo/eventual-send and @endo/captp)
npm error code ERR_INVALID_ARG_TYPE
npm error The "file" argument must be of type string. Received undefined
npm error A complete log of this run can be found in: C:\Users\User\AppData\Local\npm-cache\_logs\2025-01-10T03_36_27_845Z-debug-0.log
Share
Improve this question
edited 13 hours ago
President James K. Polk
41.9k26 gold badges108 silver badges143 bronze badges
asked yesterday
robson idongesit samuelrobson idongesit samuel
351 silver badge8 bronze badges
1 Answer
Reset to default 0number one: make sure you use latest versions of node and npm. number two: install each package separately to find out which one causes the error and then troubleshoot from there.
Also clear npm cache as you do the above steps
What you can also do is delete your node_modules folder and start over by installing one package at a time
本文标签:
版权声明:本文标题:javascript - I am having Issues installing node packages like bcrypt, multer, cloudinary and multer-storage-cloudinary - Stack O 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736594544a1945128.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论