UNMET package dependencies babel - #babel\core\package.json missing - npm

I was trying to install gulp-babel with command npm install gulp-babel but after some process found below error :
+-- UNMET PEER DEPENDENCY extraneous error: ENOENT: no such file or directory, open 'D:\Zenverse\zenverse\node_modules\#babel\core\package.json
Full Logcat is as follows :
+-- UNMET PEER DEPENDENCY extraneous error: ENOENT: no such file or directory, open '\node_modules\#babel\core\package.json
+-- UNMET DEPENDENCY babel-core#^6.26.3
+-- gulp-babel#7.0.1
| +-- plugin-error#1.0.1
| `-- vinyl-sourcemaps-apply#0.2.1
`-- UNMET PEER DEPENDENCY webpack#2 || 3 || 4
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\core\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\helper-define-map\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\helper-module-imports\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\helper-module-transforms\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\plugin-proposal-unicode-property-regex\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\helper-simple-access\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\plugin-transform-block-scoping\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\plugin-transform-dotall-regex\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\plugin-transform-classes\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\plugin-transform-regenerator\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\plugin-transform-unicode-regex\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\template\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\traverse\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\chokidar\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\babel-register\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\output-file-sync\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\core\node_modules\braces\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\core\node_modules\extglob\package.json'
npm WARN #babel/plugin-syntax-async-generators#7.0.0-beta.51 requires a peer of #babel/core#>=7.0.0-beta.50 <7.0.0-rc.0 but none was installed.
npm WARN #babel/plugin-syntax-object-rest-spread#7.0.0-beta.51 requires a peer of #babel/core#>=7.0.0-beta.50 <7.0.0-rc.0 but none was installed.
npm WARN #babel/plugin-syntax-optional-catch-binding#7.0.0-beta.51 requires a peer of #babel/core#>=7.0.0-beta.50 <7.0.0-rc.0 but none was installed.
npm WARN gulp-babel#7.0.1 requires a peer of babel-core#6 || 7 || ^7.0.0-alpha || ^7.0.0-beta || ^7.0.0-rc but none was installed.
npm WARN babel-loader#7.1.4 requires a peer of babel-core#6 but none was installed.
npm WARN babel-loader#7.1.4 requires a peer of webpack#2 || 3 || 4 but none was installed.
npm WARN zenverse#8.3.0 No repository field.
npm WARN zenverse#8.3.0 No license field.
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "gulp-babel"
npm ERR! node v4.4.2
npm ERR! npm v3.10.8
npm ERR! path \node_modules\babel-generator
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename
npm ERR! Error: EPERM: operation not permitted, rename '\node_modules\babel-generator' -> '\node_modules\.babel-generator.DELETE'
npm ERR! at moveAway (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:38:5)
npm ERR! at destStatted (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:27:7)
npm ERR! at FSReqWrap.oncomplete (fs.js:82:15)
npm ERR!
npm ERR! Error: EPERM: operation not permitted, rename '\node_modules\babel-generator' -> '\node_modules\.babel-generator.DELETE'
npm ERR! at Error (native)
npm ERR! { [Error: EPERM: operation not permitted, rename '\node_modules\babel-generator' -> '\node_modules\.babel-generator.DELETE'] parent: 'zenverse' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! \npm-debug.log
what seems to be the problem?

I have gone through the same issue and the solution for me was to update node to the latest version.
Please download the latest version of node from the below link:
https://nodejs.org/en/

Related

Npm Install ERR! message

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /Users/giovanylopes/bootcamp-projects/react-nodejs-example/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/Users/giovanylopes/bootcamp-projects/react-nodejs-example/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/giovanylopes/.npm/_logs/2022-11-18T14_26_47_519Z-debug-0.log
I was expecting to install all the dependencies that are defined in the package.json file
Most probably you don't have a package.json file in /Users/giovanylopes/bootcamp-projects/react-nodejs-example/ directory.
The part of the error that you have posted to focus on is the following piece:
no such file or directory, open '/Users/giovanylopes/bootcamp-projects/react-nodejs-example/package.json'
It can't find your package.json file at the location it has listed. Take a look at that location and make sure that you have a package.json file there.

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?

PolymerCLI - Error : Run the command "npm install -g polymer-cli-1.5.7.tgz"

Following the steps:
install polymer-cli
Run the command : npm install polymer-cli
After install the bundled-debs :
Run the command : npm install -g bundle-deps
After run the command :
bundle-deps
Finally run the command :
npm pack
Got the polymer-cli-1.5.7.tgz file.
Now, run the npm install command,
npm install -g polymer-cli-1.5.7.tgz
Result :
Get the error message :
```
C:\Users\*****\AppData\Roaming\npm
`-- (empty)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.0.0 (node_modules\polymer-cli\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})
npm WARN sinon-chai#2.14.0 requires a peer of chai#>=1.9.2 <5 but none was installed.
npm WARN sinon-chai#2.14.0 requires a peer of sinon#^1.4.0 || ^2.1.0 || ^3.0.0 || ^4.0.0 but none was installed.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "polymer-cli-1.5.7.tgz"
npm ERR! node v6.11.5
npm ERR! npm v3.10.10
npm ERR! path C:\Users\*****\AppData\Roaming\npm\node_modules\.staging\#polymer\sinonjs-1e1235f0
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\*****\AppData\Roaming\npm\node_modules\.staging\#polymer\sinonjs-1e1235f0' -> 'C:\Users\*****\AppData\Roaming\npm\node_modules\polymer-cli\node_modules\#polymer\sinonjs'
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\*****\AppData\Roaming\npm\node_modules\.staging\#polymer\sinonjs-1e1235f0' -> 'C:\Users\*****\AppData\Roaming\npm\node_modules\polymer-cli\node_modules\#polymer\sinonjs'
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! enoent
npm ERR! Please include the following file with any support request:
npm ERR! C:\nginx-1.13.7\html\polymer-cli\npm-debug.log
npm ERR! code 1
```
Note:
****** - User Name
Versions & Environment
- Polymer CLI: 1.5.7
- node: v.6.11.5
- Operating System: windows
I am not sure why are you installing polymer-cli-1.5.7.tgz when you installed polymer-cli already in the first step? But not globally, you are missing -g switch in first step. What are you trying to achieve, which procedure do you follow? The issue could be related to permissions because you don't have rights to access that path, but you could try running console with administrator privileges. It is better to explain what exactly you want to setup so we can give you a better answer :)

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

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