Hi I am trying to install gulp and its not working and just returns this message.
$ npm install gulp --save-dev
npm WARN deprecated minimatch#2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch#0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs#1.2.3: graceful-fs v3.0.0 and before will fail o n node releases >= v7.0. Please update to graceful-fs#^4.0.0 as soon as possible . Use 'npm ls graceful-fs' to find it in the tree.
npm WARN abc#1.0.0 No description
npm WARN abc#1.0.0 No repository field.
These are just Warnings that can be ignored. To check if the module was properly installed, Try the following command to check the version installed:
npm list | grep gulp
It will list the version that previous command installed. If you don't get any version, then check version of npm are you using. Kindly update the version of npm and try again. It looks like that your npm version is outdated.
npm install -g npm
Related
Edit
I ended up upgrading the iOS version and running iterm2 using rosetta and the pod install finally worked. I was also using npx pod install when I should of just used cd ios/ && pod install
Original
I am setting up a new laptop and finally got around to building my React native app again and am running into an issue with npx pod install.
npx pod install
Need to install the following packages:
pod
Ok to proceed? (y) y
npm WARN deprecated urix#0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated minimatch#2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated resolve-url#0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated chokidar#1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents#1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated mkdirp#0.3.5: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated uuid#3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated mkdirp#0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated connect#2.30.2: connect 2.x series is deprecated
npm WARN deprecated coffee-script#1.8.0: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated core-js#1.2.7: core-js#<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code ENOENT
npm ERR! syscall chmod
npm ERR! path /Users/myuser/.npm/_npx/a0ca5f5666585aa2/node_modules/pod/node_modules/pm2/bin/pm2
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/myuser/.npm/_npx/a0ca5f5666585aa2/node_modules/pod/node_modules/pm2/bin/pm2'
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/myuser/.npm/_logs/2021-11-11T00_43_21_277Z-debug.log
When I go looking in these npx directories they never have anything in the node_modules.
Looking at the pod package.json file, it appears to have a dependency on pm2 being installed in the module's own node_modules directory but that's not how npx does things. So that's why you're getting ENOENT (which is basically "path not found") for the pm2 module as your error message.
The easiest solution is probably to not use npx with pod but to instead do as the README instructs and install pod as a global package with npm install -g pod. Then run pod install instead of npx pod install.
I am trying to install vue3 js. but unfortunately I am getting an error please help me how can i resolve ? thanks.
developer#developer-ThinkCentre-M93p:~$ npm install -g #vue/cli
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated #hapi/joi#15.1.1: Switch to 'npm install joi'
npm WARN deprecated #hapi/bourne#1.3.2: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated #hapi/topo#3.1.6: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated #hapi/hoek#8.5.1: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated #hapi/address#2.1.4: Moved to 'npm install #sideway/address'
npm WARN deprecated har-validator#5.1.5: this library is no longer supported
npm ERR! Unexpected end of JSON input while parsing near '...8HIwwH2SLKEsPpZqiiIW8'
npm ERR! A complete log of this run can be found in:
npm ERR! /home/developer/.npm/_logs/2021-01-27T02_11_15_446Z-debug.log
install vue-cli if you haven't yet
sudo npm install -g #vue/cli
OR update to latest
sudo npm update -g #vue/cli
then create a new project with
vue create hello-world
then select vue 3 project
Including comment from #Eazash:
You need to verify your npm cache with npm cache verify and then try installing vue-cli. If that doesn't work, try clearing the cache altogether with npm cache clean --force
could also try with sudo privileges: sudo npm cache verify and sudo npm cache clean --force
Newbie here, I am trying to install vue cli for frontend development with npm, but it is throwing an error.
Here is the output of sudo npm install -g #vue/cli
[18:00 vue]$ sudo npm install -g #vue/cli
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated #hapi/joi#15.1.1: Switch to 'npm install joi'
npm WARN deprecated #hapi/topo#3.1.6: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated #hapi/hoek#8.5.1: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated #hapi/address#2.1.4: Moved to 'npm install #sideway/address'
npm WARN deprecated #hapi/bourne#1.3.2: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated har-validator#5.1.5: this library is no longer supported
npm WARN deprecated urix#0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url#0.2.1: https://github.com/lydell/resolve-url#deprecated
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://npm.community>
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-01-18T13_06_37_662Z-debug.log
Here is a complete log
I tried with and without sudo, the same error.
My machine runs Manjaro KDE 20.2, npm version 6.14.9, node v15.4.0. I have tried:
retrying to see if it works this time
sudo npm cache verify and sudo npm cache clean --force
removing /usr/lib/node_modules
reinstalling node and npm
anything else i found on the internet
I'm stuck on this error for a few days, any help is appreciated.
It's interesting that it works without -g flag, installing to current folder, but I can't figure out how to use vue command then.
Okay, i removed that Manjaro, and grabbed the latest version of ubuntu, this solved my problem, will never install Manjaro again.
I need help with Ionic4.
I am trying to create a new project but I am getting this error:
npm i npm WARN deprecated istanbul#0.4.5: This module is no longer
maintained, try this instead: npm WARN deprecated npm i nyc npm WARN
deprecated Visit https://istanbul.js.org/integrations for other
alternatives. npm WARN deprecated circular-json#0.5.9: CircularJSON is
in maintenance only, flatted is its successor. npm ERR! Unexpected end
of JSON input while parsing near '...v/7+T+UmfF7FFAzvKrLbt'
npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\SAMSUNG\AppData\Roaming\npm-cache_logs\2019-02-18T15_07_32_601Z-debug.log
[ERROR] An error occurred while running subprocess npm.
Since OP didn't update with his solution, based on the original post I'm guessing he had an older version of NPM. This is a problem on Ubuntu because at least as of my posting this the standard one you get by running "apt install npm" is like version 5. To install NPM 10.x+, do this:
sudo apt install curl
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt install nodejs
I found this solution here (not affiliate or anything):
https://joshtronic.com/2018/05/08/how-to-install-nodejs-10-on-ubuntu-1804-lts/
I'm getting this kind of error.
C:\Users\Sulagna(mana)\Desktop\Angular Application\quickstart-master>npm install
npm WARN deprecated minimatch#0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! Unexpected end of JSON input while parsing near '...Shrinkwrap":false,"di'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Sulagna(mana)\AppData\Roaming\npm-cache\_logs\2018-08-24T18_43_22_701Z-debug.log
C:\Users\Sulagna(mana)\Desktop\Angular Application\quickstart-master>
Does anyone know how to fix it?
Delete node_modules folder
npm cache clean --force
npm install
It says that the npm package minimatch#0.3.0 has a security vulnerability and therefore asking you to update it to version 3.0.2
You will need to update the minimatch version in your package.json.