I am on win 10.trying to install angular-material-data-table on my working folder.npm install angular-material-data-table --save.its gives me the following error...,
C:\xampp\htdocs\mission>npm install angular-material-data-table --save
npm WARN saveError ENOENT: no such file or directory, open
'C:\xampp\htdocs\mission\package.json' C:\xampp\htdocs\mission
+-- UNMET PEER DEPENDENCY angular#^1.4.0
+-- UNMET PEER DEPENDENCY angular-material#^1.0.0 `-- angular-material-data-table#0.10.10
npm WARN enoent ENOENT: no such file or directory, open
'C:\xampp\htdocs\mission\package.json' npm WARN
angular-material-data-table#0.10.10 requires a peer of angular#^1.4.0
but none was installed. npm WARN angular-material-data-table#0.10.10
requires a peer of angular-material#^1.0.0 but none was installed. npm
WARN mission No description npm WARN mission No repository field. npm
WARN mission No README data npm WARN mission No license field.
I guess you need to learn how to use npm:
Create an project.json file via npm init
Than add all required libraries:
npm install angular#1.4.7 --save
npm install angular-material#1.0.0 --save
After that you can install the module you need
npm install angular-material-data-table --save
Related
PS E:\React Native\contacts> npm i #react-navigation/native
npm WARN jscodeshift#0.11.0 requires a peer of #babel/preset-env#^7.1.6 but none is installed. You must install peer dependencies yourself.
npm WARN react-native#0.64.2 requires a peer of react#17.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-shallow-renderer#16.14.1 requires a peer of react#^16.0.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-test-renderer#17.0.1 requires a peer of react#17.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN tsutils#3.21.0 requires a peer of typescript#>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev
|| >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
npm WARN use-subscription#1.5.1 requires a peer of react#^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN #react-navigation/native#5.9.4 requires a peer of react#* but none is installed. You
must install peer dependencies yourself.
npm WARN #react-navigation/core#5.15.3 requires a peer of react#* but none is installed. You must install peer dependencies yourself.
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path E:\React Native\contacts\node_modules#react-navigation\core\node_modules\react-is
npm ERR! dest E:\React Native\contacts\node_modules#react-navigation\core\node_modules.react-is.DELETE
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename 'E:\React Native\contacts\node_modules#react-navigation\core\node_modules\react-is' -> 'E:\React Native\contacts\node_modules#react-navigation\core\node_modules.react-is.DELETE'
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\Hello\AppData\Roaming\npm-cache_logs\2021-06-10T04_29_31_173Z-debug.log
The reason behind this is that npm deprecated [auto-installing of peerDependencies] since npm#3, so required peer dependencies like babel-core and webpack must be listed explicitly in your package.json.
All that you need to do is to install babel-core.
https://github.com/npm/npm/issues/6565
I think there is running android emulator, try to close all of android related consoles and retry the installation.
the solution of error to install NPM navigation dependencies packages:
choose one of these!
1: upgrade #react-native-community/masked-view to the latest package which is accepting by react#16 and react#17.
2: downgrade your root project's react version to 16
I hope this is helpful.
I solved this error.
just run the command as globally
npm install -g #react-navigation/native
May be it shows some warnings but still your package will be installed
I'm trying to install bootstrap-vue to my vue project, using the command npm install bootstrap-vue bootstrap but I get this mysterious error.
npm WARN deprecated popper.js#1.16.1: You can find the new Popper v2 at #popperjs/core, this package is dedicated to the legacy v1
npm WARN #vue/cli-plugin-typescript#4.5.7 requires a peer of #vue/compiler-sfc#^3.0.0-beta.14 but none is installed. You must install peer dependencies yourself.
npm WARN #vue/cli-service#4.5.7 requires a peer of #vue/compiler-sfc#^3.0.0-beta.14 but none is installed. You must install peer dependencies yourself.
npm WARN jsdom#15.2.1 requires a peer of canvas#^2.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN ws#7.3.1 requires a peer of bufferutil#^4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN ws#7.3.1 requires a peer of utf-8-validate#^5.0.2 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap#4.5.3 requires a peer of jquery#1.9.1 - 3 but none is installed. You must install peer dependencies yourself.
npm ERR! path C:\Users\roeir\OneDrive\שולחן העבודה\Programming stuff\Chatting app\chat-client\node_modules\#nuxt\opencollective\node_modules\chalk
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\roeir\OneDrive\שולחן העבודה\Programming stuff\Chatting app\chat-client\node_modules\#nuxt\opencollective\node_modules\chalk' -> 'C:\Users\roeir\OneDrive\שולחן העבודה\Programming stuff\Chatting app\chat-client\node_modules\#nuxt\opencollective\node_modules\.chalk.DELETE'
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\roeir\AppData\Roaming\npm-cache\_logs\2020-11-08T14_54_53_107Z-debug.log
this is my directory C:\Users\roeir\OneDrive\שולחן העבודה\Programming stuff\Chatting app\chat-client
Did you try:
npm i bootstrap-vue
Had the same issue and this (found on https://www.npmjs.com/package/bootstrap-vue) solved my problem.
Cannot install react navigation, error is as below,
F:\Test2>npm install --save react-navigation
npm WARN #babel/plugin-check-constants#7.0.0-beta.38 requires a peer of #babel/core#7.0.0-beta.38 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-screens#1.0.0-alpha.9 requires a peer of react#16.0.0-alpha.6 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-screens#1.0.0-alpha.9 requires a peer of react-native#^0.44.1 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules\fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, rename 'F:\Test2\node_modules\.staging\fsevents-db169078\node_modules\nopt' -> 'F:\Test2\node_modules\.staging\nopt-ec00ee2d'
npm ERR! path F:\Test2\node_modules\hoist-non-react-statics
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'F:\Test2\node_modules\hoist-non-react-statics' -> 'F:\Test2\node_modules\.hoist-non-react-statics.DELETE'
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\usman\AppData\Roaming\npm-cache\_logs\2018-09-13T04_40_04_090Z-debug.log
Any help would be appreciated
First try
npm install -g react-navigation
Or next :
Try installing
npm install #react-navigation/native
First take a backup of all the dependencies in node modules.
Take information about package.json
with this file u can able to know which dependcies are already install if require u can reinstall npm then again do npm install#react-navigation/native
It seems the hoist-non-react-statics package is incorrect. So you could re-install it or re-install the whole node_modules.
First of all, backup your node_modules folder. This is very important!
Then delete node_modules folder and re-install the npm packages with npm install.
After above operation, try installing react-navigation again.
I cloned a project to my local repo:
$ npm i
npm WARN cropper#3.1.4 requires a peer of jquery#>= 1.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN The package iview is included as both a dev and production dependency.
npm WARN The package vuex is included as both a dev and production dependency.
But when I install the jquery#>= 1.9.1 dependency manually , I get can not found error:
$ npm install jquery#>= 1.9.1 --save-dev
npm ERR! code E404
npm ERR! 404 Not Found: 1.9.1#latest
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/luowensheng/.npm/_logs/2018-02-12T07_13_29_793Z-debug.log
What this line
npm WARN cropper#3.1.4 requires a peer of jquery#>= 1.9.1 but none is installed. You must install peer dependencies yourself.
means is you need to have a jquery version greater than 1.9.1
Just do
npm install jquery#^1.9.1 or npm install jquery#latest if you want the latest jquery version which is 3.x.x
I just follow the instructions in there:
http://karma-runner.github.io/0.12/intro/installation.html
Karma has been installed correctly.
Though, I can't install karma-jasmine and karma-chrome-launcher. I am actually having a lot's of warnings about README:
npm WARN package.json abbrev#1.0.4 No README data
npm WARN package.json ansi#0.2.1 No README data
npm WARN package.json archy#0.0.2 No README data
npm WARN package.json asn1#0.1.11 No README data
...
and then a few unmet dependancies:
*
npm WARN unmet dependency /usr/lib/node_modules/block-stream requires inherits#'~2.0.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/fstream requires inherits#'~2.0.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/fstream-ignore requires inherits#'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/fstream-npm requires inherits#'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/glob requires inherits#'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/npmconf requires inherits#'~2.0.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/tar requires inherits#'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
*
Any idea where could that come from ?
Follow below steps to setup karma-jasmine environment
• Install nodejs
o Download nodejs suitable setup file from https://nodejs.org/download/ website.
o Install nodejs using setup file
• Installation of Karma and plugins using npm(node package manager)
o Open command prompt
o Traverse to project structure
cd ‘\path of project folder’
(path till folder which is having /src folder in it)
o Install Karma
npm install karma --save-dev
• New folder in project structure will get created named as ‘node_modules’
• If any warnings appear on command prompt ignore them
o Install browser plugins(optional)
npm install karma-jasmine karma-chrome-launcher --save-dev
• If any warnings appear on command prompt ignore them
o Install Karma command line interpreter globally
npm install -g karma-cli
• If any warnings appear on command prompt ignore them