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
Add a comment  | 

1 Answer 1

Reset to default 0

number 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

本文标签: