I'm installing express on disk D:/ but I found an error when I installed it, but if I install express on disk C:/ it worked and I reinstalled it on disk E:/ and D:/ Errors like this appear.enter image description here
Asked
Active
Viewed 4,165 times
1
-
Have you tried running `npm init -y` first to initialise a project in that directory? – Matt Davis Jan 09 '22 at 01:10
-
not before now it's been solved., thank you – faisal hanafi Jan 09 '22 at 01:36
2 Answers
0
You seem to be running into a permissions issue. one thing that I always do is use:
sudo
that is on Mac. On Windows, you should be able to use:
--force at the end of your statement.

roger
- 192
- 11
0
for windows :
I tried to fix this problem by updating the node.js and installing express globally by running following command:-
npm i -g express