Can't install vuejs in laravel project on fedora28 - npm-install

When running:
$sudo npm install
these three warnings appear:
npm WARN deprecated browserslist#2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated browserslist#1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated gulp-util#3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-

I reinstalled the os and just inserting $ sudo dnf install nodejs
now it works
The problem was that i installed npm twice:
in fedora 28 when inserting $ sudo dnf install nodejs
it install both npm and nodejs
so i don't have to insert $ sudo dnf install npm

Related

I am trying to install vue3 js

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

Can't create a new project in Ionic 4

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/

Trouble installing gulp

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

npm install jhipster package yo does not satisfy

I m trying to install jhipster. I followed steps on https://jhipster.github.io/installation.html , but last step (npm install -g generator-jhipster) returns me:
npm ERR! peerinvalid The package yo does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer generator-jhipster#2.1.1 wants yo#>=1.3.0
I have centOS 7 and npm was installed from repository
npm -v
1.3.6
I already tried update yo, but seems its up to date for this npm.
npm update -g yo
UPDATE:
Fixed by adding new repostory:
curl -sL https://rpm.nodesource.com/setup | bash -
I was able to install higher version of yo
Fixed by adding new repostory:
curl -sL https://rpm.nodesource.com/setup | bash -
I was able to install higher version of yo

IntelliJ cant see npm plugins

My IntelliJ is not seeing my karma plugins:
WARN [plugin]: Cannot find plugin "karma-ng-extjs-scenario".
Did you forget to install it ?
npm install karma-ng-extjs-scenario --save-dev
WARN [plugin]: Cannot find plugin "karma-jasmine".
Did you forget to install it ?
npm install karma-jasmine --save-dev
WARN [plugin]: Cannot find plugin "karma-chrome-launcher".
Did you forget to install it ?
npm install karma-chrome-launcher --save-dev
WARN [plugin]: Cannot find plugin "karma-firefox-launcher".
Did you forget to install it ?
npm install karma-firefox-launcher --save-dev
I believe it is because i was following a tutorial that told me to install them globally.
But then i realised that i wanted to install them locally and save to the package.json.
I try again to install locally and it doesnt fix it:
$ npm install karma-jasmine --save-dev
npm WARN package.json karma-ie-launcher#0.1.5 No README data
info trying registry request attempt 1 at 21:06:11
http GET https://registry.npmjs.org/karma-jasmine
http 304 https://registry.npmjs.org/karma-jasmine
karma-jasmine#0.1.5 ../../../node_modules/karma-jasmine
I can however run karma from within my project from the command line and the plugins exist in the npm modules directory.
Is there a way to fix this or do i need to reinstall the packages from scratch? If so, what is the easiest way of doing that?
the --link flag linked the global install into the local directory.
npm install karma-jasmine --save-dev --link