npm install ts-md5 ERROR - node.js

I'm getting an error everytime I execute npm install ts-md5 command in node.js command prompt. I have no idea hoe to resolve this problem. Hope you can help me, thanks in advance Here is the error:
C:\Users\Administrator>npm install ts-md5
C:\Users\Administrator
+-- UNMET PEER DEPENDENCY #angular/core#*
+-- UNMET PEER DEPENDENCY #ionic-native/core#^3.6.0 || >=4.0.0
+-- UNMET PEER DEPENDENCY rxjs#^5.0.1
`-- ts-md5#1.2.2
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Administrator\
package.json'
npm WARN #ionic-native/network#4.1.0 requires a peer of #ionic-native/core#^3.6.
0 || >=4.0.0 but none was installed.
npm WARN #ionic-native/network#4.1.0 requires a peer of #angular/core#* but none
was installed.
npm WARN #ionic-native/network#4.1.0 requires a peer of rxjs#^5.0.1 but none was
installed.
npm WARN Administrator No description
npm WARN Administrator No repository field.
npm WARN Administrator No README data
npm WARN Administrator No license field.

It seems that package.json is missing.
You can use : npm install only inside npm project.
Create a new folder and execute npm init on it and follow the instructions.

Related

TS6053 Building Swashbuckle.AspNetCore

I cloned Swashbuckle.AspNetCore and am trying to build it
However the node_modules folder is missing
I ran npm i redoc and got the following output
npm WARN saveError ENOENT: no such file or directory, open 'C:\Windows\System32\package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open 'C:\Windows\System32\package.json'
npm WARN redoc#2.0.0-rc.40 requires a peer of mobx#^4.2.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN redoc#2.0.0-rc.40 requires a peer of react#^16.8.4 but none is installed. You must install peer dependencies yourself.
npm WARN redoc#2.0.0-rc.40 requires a peer of react-dom#^16.8.4 but none is installed. You must install peer dependencies yourself.
npm WARN redoc#2.0.0-rc.40 requires a peer of styled-components#^4.1.1 but none is installed. You must install peer dependencies yourself.
npm WARN mobx-react#6.3.0 requires a peer of mobx#^5.15.4 || ^4.15.4 but none is installed. You must install peer dependencies yourself.
npm WARN mobx-react#6.3.0 requires a peer of react#^16.8.0 || 16.9.0-alpha.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-tabs#3.1.1 requires a peer of react#^16.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN #redocly/react-dropdown-aria#2.0.11 requires a peer of react#^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN #redocly/react-dropdown-aria#2.0.11 requires a peer of react-dom#^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN #redocly/react-dropdown-aria#2.0.11 requires a peer of styled-components#^5.1.1 but none is installed. You must install peer dependencies yourself.
npm WARN mobx-react-lite#2.2.1 requires a peer of mobx#^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN mobx-react-lite#2.2.1 requires a peer of react#^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN System32 No description
npm WARN System32 No repository field.
npm WARN System32 No README data
npm WARN System32 No license field.
How should I proceed?
I needed to be in the Swashbuckle.AspNetCore.ReDoc folder before running the command
npm i redoc

requires a peer of grunt#>=0.4.0

Why do I get the error below? My grunt version is > v0.4.0
npm install grunt-contrib-concat --save-dev
+-- UNMET PEER DEPENDENCY grunt#>=0.4.0
Error messages:
..Projects\Hartz\Hartz>npm install grunt-contrib-concat --save-dev
Hartz#1.0.0 C:..\Projects\Hartz\Hartz
+-- UNMET PEER DEPENDENCY grunt#>=0.4.0 `-- grunt-contrib-concat#1.0.1
npm WARN grunt-contrib-jshint#1.0.0 requires a peer of grunt#>=0.4.0
but none was installed. npm WARN grunt-contrib-concat#1.0.1 requires a
peer of grunt#>=0.4.0 but none was installed. npm WARN Hartz#1.0.0 No
repository field.
grunt -V
grunt-cli v1.2.0 grunt v1.0.1
Install grunt locally (not globally).
npm install grunt --save-dev
It should help, because grunt-contrib-concat is looking for locally installed grunt module.

npm install returns errors

when I run npm install I get the following errors.
npm WARN enoent ENOENT, open '/Users/IBricchi/package.json'
npm WARN generator-steroids#1.0.21 requires a peer of yo#1.8.1 || >=1.8.3 but none was installed.
npm WARN grunt-contrib-clean#1.0.0 requires a peer of grunt#>= 0.4.5 but none was installed.
npm WARN grunt-contrib-coffee#1.0.0 requires a peer of grunt#>= 0.4.5 but none was installed.
npm WARN grunt-contrib-concat#1.0.1 requires a peer of grunt#>=0.4.0 but none was installed.
npm WARN grunt-contrib-sass#1.0.0 requires a peer of grunt#>=0.4.0 but none was installed.
npm WARN grunt-extend-config#0.9.5 requires a peer of grunt#>=0.4.0 but none was installed.
npm WARN IBricchi No description
npm WARN IBricchi No repository field.
npm WARN IBricchi No README data
npm WARN IBricchi No license field.
I've tried looking for answers online, but everything I've tried has done nothing. Any help would be appreciated.
Looks like package.json was not found by npm in /Users/IBricchi/package.json. Probably you are running npm install from your home directory by mistake. You should run npm install from your project root directory.

npm ERR! cb<> never called! - browserSync

I'm new to grunt and am hitting a wall with BrowserSync. Whether I try to install it globally or for a particular folder
npm install -g grunt-browser-sync
Or
npm install grunt-browser-sync --save-dev
I get the same error: npm ERR! cb<> never called! I've tried npm cache clear and deleting the node_modules folder and runing npm install again but nothing seems to help.
Watch, Compass, and Uglify are all working. I just can't get browserSync to install successfully.
Here is a copy/paste of commands I just entered and the results.
D:\xampp\htdocs\testing>npm install grunt-browser-sync --save-dev
npm WARN package.json testing#1.0.0 No repository field.
npm WARN package.json testing#1.0.0 No README data
npm WARN unmet dependency D:\xampp\htdocs\testing\node_modules\socket.io\node_mo
dules\engine.io requires debug#'1.0.3' but will load
npm WARN unmet dependency D:\xampp\htdocs\testing\node_modules\socket.io\node_mo
dules\debug,
npm WARN unmet dependency which is version 0.7.4
grunt-browser-sync#1.5.3 node_modules\grunt-browser-sync
└── browser-sync#1.9.0 (emitter-steward#0.0.1, easy-extender#2.2.0, opt-merger#1
.1.0, commander#2.6.0, opn#1.0.1, object-path#0.8.1, minimist#1.1.0, eazy-logger
#2.1.0, ua-parser-js#0.7.3, browser-sync-client#1.0.1, lodash#2.4.1, dev-ip#0.1.
7, portscanner-plus#0.2.0, connect#3.3.4, serve-index#1.6.0, tfunk#3.0.0, serve-
static#1.8.0, glob-watcher#0.0.7, localtunnel#1.5.0, resp-modifier#1.0.1, foxy#7
.1.0)
D:\xampp\htdocs\testing>grunt browserSync
Running "browserSync:bsFiles" (browserSync) task
Warning: Cannot find module 'base64id' Use --force to continue.
Aborted due to warnings.
D:\xampp\htdocs\testing>
Please advise.
following sskips suggestion below I got the following error:
D:\xampp\htdocs\testing>npm install base64id
npm WARN package.json testing#1.0.0 No repository field.
npm WARN package.json testing#1.0.0 No README data
npm WARN unmet dependency D:\xampp\htdocs\testing\node_modules\socket.io\node_mo
dules\engine.io requires debug#'1.0.3' but will load
npm WARN unmet dependency D:\xampp\htdocs\testing\node_modules\socket.io\node_mo
dules\debug,
npm WARN unmet dependency which is version 0.7.4
base64id#0.1.0 node_modules\base64id
D:\xampp\htdocs\testing>
you lose something.
install base64id as below, then try again
npm install base64id

npm reports "requires (one version)' but will load (another version)"

Likely after cordove install with npm I got warning messages almost for every npm operations "requires colors#'>=0.6.0' but will load .. color"
D:\Workspaces\Enide-Studio-2014\OpenWith.js>npm i . -g
C:\Users\weibl\AppData\Roaming\npm\openwith -> C:\Users\weibl\AppData\Roaming\npm\node_modules\openwith\bin\openwith.js
npm WARN unmet dependency C:\Users\weibl\AppData\Roaming\npm\node_modules\phonegap\node_modules\cordova requires colors#'>=0.6.0' but will load
npm WARN unmet dependency C:\Users\weibl\AppData\Roaming\npm\node_modules\phonegap\node_modules\colors,
npm WARN unmet dependency which is version 0.6.0-1
npm WARN unmet dependency C:\Users\weibl\AppData\Roaming\npm\node_modules\phonegap\node_modules\node-static requires colors#'>=0.6.0' but will load
npm WARN unmet dependency C:\Users\weibl\AppData\Roaming\npm\node_modules\phonegap\node_modules\colors,
npm WARN unmet dependency which is version 0.6.0-1
openwith#0.11.0 C:\Users\weibl\AppData\Roaming\npm\node_modules\openwith
How to fix such npm errors?
As Andrew hinted, solution was to
npm -g update colors
Clean out the node-Modules folder and re-run:
npm install
At first, delete the phonegap\ folder in the location C:\Users\weibl\AppData\Roaming\npm\node_modules\. Of course, specific location will be different for others.
Then, proceed for any npm install/update command you want.

Resources