How to Upload Files in Node.js Using Express and Multer.
npm install express multernodemon App.jsExam about upload localfile
When send file by postman, the file is upload in folder Uploads
nodemon : The term 'nodemon' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling
of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ nodemon app.js
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (nodemon:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundExceptionnpm i -g nodemonnodemon : File C:\Users\ADMIN\AppData\Roaming\npm\nodemon.ps1 cannot be loaded. The file C:\Users\ADMIN\AppData\Roaming\npm\nodemon.ps1
is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting
execution policy, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=********.
At line:1 char:1
+ nodemon app.js
+ ~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccessYou can open your Terminal and Run administrator this code.
Set-ExecutionPolicy Unrestricted
