npm WARN ajv-keywords#3.1.0 requires a peer 0f ajv#A6.0.0 but none is installed.
You must install peer dependencies yourself.
Install ajv package before running application. ajv-keywords need it first
Related
I'm using Angular CLI: 8.3.18 for my current project. Thus, after I create a new project sudo ng new angular-reddit, I tried to install Semantic UI Component because I need to use it for styling purpose.
So, I issued this command but ended up with and error as bellow
npm i -g semantic-ui --save
The output was
npm WARN deprecated gulp-util#3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
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: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated natives#1.1.6: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs#4.x.
npm WARN deprecated fsevents#1.2.9: One of your dependencies needs to upgrade to fsevents v2: 1) Proper nodejs v10+ support 2) No more fetching binaries from AWS, smaller package size
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm WARN semantic-ui#2.4.2 requires a peer of better-console#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of del#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of extend#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of gulp#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of gulp-autoprefixer#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of gulp-chmod#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of gulp-clean-css#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of gulp-clone#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of gulp-concat#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of gulp-concat-css#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of gulp-copy#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of gulp-dedupe#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of gulp-flatten#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of gulp-header#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of gulp-help#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of gulp-if#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of gulp-less#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of gulp-notify#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of gulp-plumber#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of gulp-print#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of gulp-rename#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of gulp-replace#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of gulp-rtlcss#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of gulp-uglify#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of gulp-watch#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of map-stream#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of replace-ext#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of require-dot-file#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of run-sequence#* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui#2.4.2 requires a peer of yamljs#* but none is installed. You must install peer dependencies yourself.
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/local/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR! [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] {
npm ERR! stack: "Error: EACCES: permission denied, access '/usr/local/lib/node_modules'",
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/narun/.npm/_logs/2019-11-10T04_12_55_741Z-debug.log
I followed the provided Url provided in console, but it still did not help solve my problem. Thanks
Firstly delete node if it is less than 10 and restart your PC
After that install node 12.13.0 atleast
Upgrade your angular cli using below command
npm install -g #angular/cli#latest
After everything is done restart your PC and then it will work
I am using React and Redux.
I imported firebase using import shown below:
import * as firebase from 'firebase/app'
import 'firebase/firestore'
Everything was working then I committed changes and pushed them to GitHub. My colleague pulled the code and told me to test it and it was not working. I tried to run the code but not working.
I changed the import to:
import * as firebase from 'firebase/firebase'
import 'firebase/firestore'
the code is working now.
If anyone has an idea what is the reason for this error can you please help me to understand this issue.
I deleted package-lock.json file
Then run npm install
I received this warning
npm WARN #firebase/firestore#1.0.6 requires a peer of #firebase/app#0.x but none is installed. You must install peer dependencies yourself.
npm WARN #firebase/firestore#1.0.6 requires a peer of #firebase/app-types#0.x but none is installed. You must install peer dependencies yourself.
npm WARN #firebase/auth#0.9.4 requires a peer of #firebase/app#0.x but none is installed. You must install peer dependencies yourself.
npm WARN #firebase/functions#0.4.1 requires a peer of #firebase/app#0.x but none is installed. You must install peer dependencies yourself.
npm WARN #firebase/functions#0.4.1 requires a peer of #firebase/app-types#0.x but none is installed. You must install peer dependencies yourself.
npm WARN #firebase/messaging#0.3.13 requires a peer of #firebase/app#0.x but none is installed. You must install peer dependencies yourself.
npm WARN #firebase/messaging#0.3.13 requires a peer of #firebase/app-types#0.x but none is installed. You must install peer dependencies yourself.
npm WARN #firebase/storage#0.2.10 requires a peer of #firebase/app#0.x but none is installed. You must install peer dependencies yourself.
npm WARN #firebase/storage#0.2.10 requires a peer of #firebase/app-types#0.x but none is installed. You must install peer dependencies yourself.
npm WARN #firebase/auth-types#0.5.3 requires a peer of #firebase/app-types#0.x but none is installed. You must install peer dependencies yourself.
npm WARN #firebase/auth-types#0.5.3 requires a peer of #firebase/util#0.x but none is installed. You must install peer dependencies yourself.
npm WARN #firebase/firestore-types#1.0.3 requires a peer of #firebase/app-types#0.x but none is installed. You must install peer dependencies yourself.
npm WARN #firebase/messaging-types#0.2.6 requires a peer of #firebase/app-types#0.x but none is installed. You must install peer dependencies yourself.
npm WARN #firebase/storage-types#0.2.6 requires a peer of #firebase/app-types#0.x but none is installed. You must install peer dependencies yourself.
npm WARN #firebase/storage-types#0.2.6 requires a peer of #firebase/util#0.x but none is installed. You must install peer dependencies yourself.
I re-installed firebase
npm install --save firebase
and problem solved. No warnings or errors and it is back to work as before.
I want to install Rocket.Chat and Meteor on Freebsd 10.3
Does anyone know why when running NPM through Meteor, it is failing to download and install the modules:
[rocketchat#web ~/meteor]$ ./meteor -v
meteor: updating npm dependencies -- meteor-deque...
Building package meteor |
/usr/home/rocketchat/meteor/dev_bundle/lib/node_modules/ip-regex /index.js:3
const word = '[a-fA-F\\d:]';
^^^^^
babel-compiler: updating npm dependencies -- meteor-babel...
ecmascript-runtime: updating npm dependencies -- meteor-ecmascript- runtime...
promise: updating npm dependencies -- meteor-promise...
npm-mongo: updating npm dependencies -- mongodb...
logging: updating npm dependencies -- cli-color...
xmlbuilder: updating npm dependencies -- xmlbuilder...
Errors prevented isopacket build:
While building package meteor:
error: Can't install npm dependencies. Are you connected to the internet?
While building package babel-compiler:
error: Can't install npm dependencies. Are you connected to the internet?
While building package ecmascript-runtime:
error: Can't install npm dependencies. Are you connected to the internet?
error: File not found: .npm/package/node_modules/meteor-ecmascript- runtime/client.js
While building package promise:
error: Can't install npm dependencies. Are you connected to the internet?
error: File not found: .npm/package/node_modules/meteor-promise /promise.bundle.js
I have downloaded a full project that has been in use for about a year now, I got a new computer and am trying to upload a change to a function. I had errors and now I am trying to redeploy a function that I know works and is the same as the source in Google Cloud.
I run:
firebase deploy --only functions:generateThumbnail
and this is the output:
deploying functions
i functions: ensuring necessary APIs are enabled...
✔ functions: all necessary APIs are enabled
i functions: preparing functions directory for uploading...
Error: Error parsing triggers: Cannot find module './dnssec'
Try running "npm install" in your functions directory before deploying.
I run npm install:
npm WARN functions# requires a peer of eslint#2.x but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords#3.2.0 requires a peer of ajv#^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN firebase-functions#0.8.2 requires a peer of firebase-admin#~5.10.0 but none is installed. You must install peer dependencies yourself.
audited 7867 packages in 6.019s
found 20 vulnerabilities (3 low, 17 moderate)
run `npm audit fix` to fix them, or `npm audit` for details
then I ran npm audit fix:
npm WARN functions# requires a peer of eslint#2.x but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords#3.2.0 requires a peer of ajv#^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN firebase-functions#0.8.2 requires a peer of firebase-admin#~5.10.0 but none is installed. You must install peer dependencies yourself.
removed 1 package and updated 5 packages in 7.583s
fixed 8 of 20 vulnerabilities in 7867 scanned packages
2 package updates for 12 vulns involved breaking changes
(use `npm audit fix --force` to install breaking changes; or do it by hand)
..I am still getting the same error as before:
Error: Error parsing triggers: Cannot find module './dnssec'
Hey so I think this is an issue with npm not updating the packages correctly. I was running into the same error.
Error: Error parsing triggers: Cannot find module './dnssec'
I found that the dnssec resource is within the 'sshpk' node module folder. So in order to correct the error I just went into the node_modules folder of my functions directory and removed the 'sshpk' module, and while still in the functions directory ran 'npm install'. Hopefully this works for you and some other people running into this issue.
Cheers. Good luck!
When I am deploying Firebase functions without
admin.initializeApp(functions.config().firebase);
Firebase logs
Error: The default Firebase app does not exist. Make sure you call
initializeApp() before using any of the Firebase services.
But if I add that line I get error on deploy.
>firebase deploy --only functions
Error:
Error: Error occurred while parsing your function triggers. Please
ensure you have the latest firebase-functions SDK by running "npm i
--save firebase-functions#latest" inside your functions folder.
Error: Firebase config variables are not available. Please use the
latest version of the Firebase CLI to deploy this function.
I already did npm i --save firebase-functions#latest which haven't done anything. I am stuck and can't do anything right now because of this... I am down for any reinstalls if they could help just tell me some steps or hints and I would seek for the rest.
NPM and NodeJS versions are:
node -v
v8.9.1
npm -v
5.6.0
Edit. Installation with admin rights:
npm i --save firebase-functions#latest
npm WARN firebase-functions#0.8.1 requires a peer of firebase-admin#~5.8.1 but none is installed. You must install peer dependencies yourself.
npm ERR! path C:\Users\Telion\firebaseApps\project-name\functions\node_modules\firebase-admin\node_modules\grpc\node_modules\abbrev
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\Telion\firebaseApps\project-name\functions\node_modules\firebase-admin\node_modules\grpc\node_modules\abbrev' -> 'C:\Users\Telion\firebaseApps\project-name\functions\node_modules\firebase-admin\node_modules\grpc\node_modules\.abbrev.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
It actually appeared I was on npm version 5.5.1 but even after the update to 5.6.0 I got the exact same error.
There was a breaking change introduced in firebase-tools#3.17.x which requires your project to upgrade firebase-functions to the latest version.
However, firebase-functions#latest also requires firebase-admin#latest (at the time of writing this answer firebase-admin#5.11.0. Once all packages are upgraded, this problem should be solved.
Another alternative is to downgrade your global firebase-tools to 3.16.0, which lets you use older firebase-functions and firebase-admin packages.
I ran into the same issue in Ubuntu and this is how i solved it
Install firebase using : sudo npm install -g firebase-tools
Also make sure you launch using admin privileges e.g to login
sudo firebase login
You also need to update the node to at least 8.15.x. That detail is shown in the message.
Once I intalled that I had to do a firebase login command and after that you can run the firebase init hosting
Previously I was getting the error on firebase init hosting but after that node update, it went away.
Hope it helps.
For me, it worked for firebase-tools6.9.2.
The firebase-tools3.16.0 is completely depricated.