npm ERR! enoent ENOENT: no such file or directory, open '/usr/local/lib/node_modules/mdo-browser-support' - ibm-mobilefirst

I am trying to install the latest mfpdev-cli version (8.0.2016062816) but I got the following error:
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "mfpdev-cli"
npm ERR! node v6.2.1
npm ERR! npm v3.9.3
npm ERR! path /usr/local/lib/node_modules/mdo-browser-support
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/usr/local/lib/node_modules/mdo-browser-support'
npm ERR! enoent ENOENT: no such file or directory, open '/usr/local/lib/node_modules/mdo-browser-support'
npm ERR! enoent
This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! anoint
Checking the repository, I was not able to find the mdo-* modules, this is the problem.
I also tried to install it through the .tar.gz file, but same error.
Is there a "workaround" on this issue?

Try :
sudo npm install -g mfpdev-cli#8.0.2016062416 --no-optional
Looks like newer builds have an issue.

Try to run the install with "sudo".
sudo npm install -g mfpdev-cli

Related

Can't install / remove / fix / start NPM on Mac

Could anyone please help me with fixing my NPM installation?
It was working a couple of months ago, but then I tried to launch it recently and nothing is working.
I can't install it, or launch it.
I am very new to all this and any help would be highly appreciated.
npm install throws error:
eugenesoch#Eugenes-iMac ~ % npm install
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /Users/eugenesoch/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/Users/eugenesoch/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/eugenesoch/.npm/_logs/2023-02-18T17_42_39_222Z-debug-0.log
npm start throws error:
eugenesoch#Eugenes-iMac ~ % npm start
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /Users/eugenesoch/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/Users/eugenesoch/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/eugenesoch/.npm/_logs/2023-02-18T17_44_40_679Z-debug-0.log
eugenesoch#Eugenes-iMac ~ %
I tried installing, tried even using sudo npm install, but nothing worked.
As said, I am quite new to all this and might not know everything, so would really appreciate someone pointing me in the right direction.
Many thanks!

I am unable to install npm package

I have made an empty folder and trying to install the npm package inside the folder so I can start to write an application. I have been attempting to install package JSON with npm install -y but it only installs the package-lock-JSON but it's showing me the following error. I even reinstalled the node on my PC didn't work.
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\hasan\Desktop\Githubfiles\node _express_mongodb/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\hasan\Desktop\Githubfiles\node _express_mongodb\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\hasan\AppData\Local\npm-cache_logs\2022-12-06T12_18_28_964Z-debug-0.log
PS C:\Users\hasan\Desktop\Githubfiles\node _express_mongodb>

why does sass & NPM stop working if I haven't changed anything?

I'm working on a site when my sass stopped working and NPM won't listen for changes!
npm ERR! errno -4058 npm ERR! enoent Error while executing: npm ERR!
enoent undefined ls-remote -h -t ssh://git#github.com/gulpjs/gulp.git
npm ERR! enoent npm ERR! enoent npm ERR! enoent spawn git ENOENT npm
ERR! enoent This is related to npm not being able to find a file. npm
ERR! enoent
npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\Symmetry
Thomas\AppData\Roaming\npm-cache\_logs\2020-12-12T16_13_40_508Z-debug.log
1- Try deleting node_modules directory entirely and run npm install.
2- Another solution could be running npm cache clean

How to fix 'cordova installation on windows' error in ionic

PS E:\Ionic> npm install -g ionic cordova
npm ERR! path C:\Users\User\AppData\Roaming\npm\node_modules.staging\cordova-c1f99104\node_modules#angular\cli
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\User\AppData\Roaming\npm\node_modules.staging\cordova-c1f99104\node_modules#angular\cli' -> 'C:\Users\User\AppData\Roaming\npm\node_modules.staging#angular\cli-4806b926'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\User\AppData\Roaming\npm-cache_logs\2019-06-03T09_30_15_495Z-debug.log
PS E:\Ionic> npm install -g cordova
npm ERR! path C:\Users\User\AppData\Roaming\npm\node_modules.staging\cordova-c1f99104\node_modules#angular\cli
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\User\AppData\Roaming\npm\node_modules.staging\cordova-c1f99104\node_modules#angular\cli' -> 'C:\Users\User\AppData\Roaming\npm\node_modules.staging#angular\cli-4806b926'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\User\AppData\Roaming\npm-cache_logs\2019-06-03T09_39_33_294Z-debug.log
Try this:
npm cache clean
followed by
npm install -g cordova

Vuejs2 - Not able to install the datepicker

In my vuejs project I want to install the "datepicker". I have executed this
npm install vue2-datepicker --save
But it's not installed properly and it's throwing error such as ,
npm ERR! path
D:\DEV\spring-boot-vuejs\frontend\node_modules\vue2-datepicker npm
ERR! code ENOENT npm ERR! errno -4058 npm ERR! syscall rename npm ERR!
enoent ENOENT: no such file or directory, rename
'D:\DEV\spring-boot-vuejs\frontend\node_modules\vue2-datepicker' ->
'D:\DEV\spring-boot-vuejs\frontend\node_modules.vue2-datepicker.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
How to get rid of this error and how to install the datepicker successfully?