I'm having some problems to install Jasminejs. I'll really appreciate some help please. Thanks!
First I run this:
npm install karma-cli -g
I don't get any errors with this command.
After running this command:
npm install jasmine-core --save-dev
I'm getting this messages:
jasmine-core#2.4.1
UNMET PEER DEPENDENCY karma#
npm warn optional skipping failed optional dependency /chokidar/fsevents
npm warn notsup Not compatible with your operating system or architecture: fsevents#1.0.12
npm warn karma-jasmine#1.0.2 requires a peer of karma#* but none was installed.
npm warn karma phantomjs-launcher#1.0.0 requires a peer of karma#>=0.9 but none was installed
If I try to run this command:
npm install phantomjs-prebuilt --save
I' getting a similar error message. I'm using Ubuntu 14.04.4, Node 5.10.1 and npm 3.10.2 .
You met 'UNMET PEER DEPENDENCY' issue is because NPM3 no longer gets dependencies automatically. You should put missing dependency on the same install command line despite you have already installed the package.
e.g. npm install jasmine-core karma --save-dev
Related
Any time I try to install anything via npm, I get this warning:
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'tiletype#0.1.0',
npm WARN EBADENGINE required: { node: '0.8.x || 0.10.x' },
npm WARN EBADENGINE current: { node: 'v16.15.1', npm: '8.11.0' }
npm WARN EBADENGINE }
followed by this error (among several other less informative errors)
npm ERR! code 1
npm ERR! path /home/ubuntu/projects/GitHub/AWCPT/opentrees-data/node_modules/mbtiles/node_modules/sqlite3
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build
This includes npm install, npm install colors, npm install sqlite3, and npm install tiletype. How do I fix this?
There is clearly something wrong with the tiletype package.
It requires node v0.8.x or 0.10.x, while you're running v16.15.1.
On top of that, tiletype v0.1.0 is discontinued for quite a while.
Perhaps, deleting the node_modules folder and reinstalling all packages from scratch (npm i) would fix it.
If not, check where this package comes from. Is it in your package.json or is is installed as a dependency for another package?
Use nvm to switch to older version of node.
nvm install v0.10
nvm use v0.10
Delete node modules folder and install npm packages again
npm install
I'm not sure what it means or how to fix it. I just got a new machine and before I pulled down my repo, I installed the latest node, Angular Cli, npm and any other package/framework needed by my app. I cloned the repo and updated all local packages in my project to current versions using npm-check-updates. I then installed the updated packages with >npm install -force to resolve a couple of peer dependency issues. I'll post a screen shoot at the very bottom. But now ng serve doesn't run see error below. Not sure why?
➜ client git:(master) ✗ ng serve
⠋ Generating browser application bundles (phase: setup)...An unhandled exception occurred: Dev-server address info is not defined.
See "/private/var/folders/l6/zz0rl4793838rf924b4y0tqc0000gn/T/ng-5kND02/angular-errors.log" for further details.
➜ client git:(master) ✗
The error in the index.js file is from this below.
const devServer = createWebpackDevServer(webpackCompiler, devServerConfig);
devServer.startCallback(() => {
var _a;
const address = (_a = devServer.server) === null || _a === void 0 ? void 0 : _a.address();
if (!address) {
obs.error(new Error(`Dev-server address info is not defined.`));
return;
}
result = {
success: true,
port: typeof address === 'string' ? 0 : address.port,
family: typeof address === 'string' ? '' : address.family,
address: typeof address === 'string' ? address : address.address,
};
});
>npm install -force
➜ client git:(master) ✗ npm install -f
npm WARN using --force Recommended protections disabled.
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: ngx-gallery-9#1.0.6
npm WARN Found: tslib#2.3.1
npm WARN node_modules/tslib
npm WARN tslib#"^2.3.1" from the root project
npm WARN 22 more (#angular-devkit/build-angular, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer tslib#"^1.10.0" from ngx-gallery-9#1.0.6
npm WARN node_modules/ngx-gallery-9
npm WARN ngx-gallery-9#"^1.0.6" from the root project
npm WARN
npm WARN Conflicting peer dependency: tslib#1.14.1
npm WARN node_modules/tslib
npm WARN peer tslib#"^1.10.0" from ngx-gallery-9#1.0.6
npm WARN node_modules/ngx-gallery-9
npm WARN ngx-gallery-9#"^1.0.6" from the root project
npm WARN deprecated har-validator#5.1.5: this library is no longer supported
npm WARN deprecated source-map-resolve#0.6.0: See https://github.com/lydell/source-map-resolve#deprecated
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 request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
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 deprecated tslint#6.1.3: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.
added 1163 packages, and audited 1164 packages in 37s
118 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
I then installed the updated packages with npm install -force to resolve a couple of peer dependency issues.
Did you actually manually resolve all the issues or think that the command above would do it for you?
My guess is that the dependencies are not installed properly, but I can be wrong.
You might want to try the solution I just posted npm not installing unable to resolve dependency tree. I also included the link in the post for further troubleshooting.
This might be due to the old version of the node.
Kindly update your node version to the latest then run the following command.
sudo n lts
Then run the following command.
ng run serve
This might help you
i have been trying to install vue cli
am getting this error :
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated resolve-url#0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix#0.1.0: Please see https://github.com/lydell/urix#deprecated
npm ERR! Unexpected end of JSON input while parsing near '...b\n/0ygjrhbcRx2VetexZ'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ekikere\AppData\Roaming\npm-cache_logs\2020-07-28T23_29_37_356Z-debug.log
This is a problem related to npm. You can get this error when the cache file gets corrupted. Clearing the cache solves the problem. Can you try this?
npm cache clean --force
you can clear cache by running these command :
npm cache clean --force
linux system:
run command as root
sudo npm install -g #vue/cli
windows system
open command prompt as adminstrator then run :
npm install -g #vue/cli
I Made a Discord bot, and I wanted to host it on a Pi, but once I got node.js working, I ran into a wall where I have npm installed, but the dependencies won't download with it. Can someone help me?
Code
pi#raspberrypi:~/bot $ npm i discord.js
npm WARN deprecated snekfetch#3.6.4: use node-fetch instead
npm WARN discord.js#11.1.0 requires a peer of bufferutil#^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js#11.1.0 requires a peer of erlpack#hammerandchisel/erlpack but none is installed. You must install peer dependencies yourself.
npm WARN discord.js#11.1.0 requires a peer of node-opus#^0.2.5 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js#11.1.0 requires a peer of opusscript#^0.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js#11.1.0 requires a peer of sodium#^2.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js#11.1.0 requires a peer of libsodium-wrappers#^0.5.1 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js#11.1.0 requires a peer of uws#^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN greeter-bot#1.0.0 No repository field.
npm WARN greeter-bot#1.0.0 No license field.
+ discord.js#11.1.0
updated 1 package in 24.205s
Firstly, I don't recommend hosting a Discord bot on a Raspberry Pi, but to stay in line with your question, I'll assume you insist on doing so.
You can try two things:
If you have apt installed, run the command apt install -a, which will install all packages missing from the previous output.
The second way is to just manually install the packages it says is missing.
Go to the npm repository, search the missing package, then download the version it requested in the output.
Hope this helps!
well I fixed it by first installing the npms on my pc to a specific folder then transferred it with Filezilla
I am trying to install some Grunt plugins like grunt-contrib-clean and grunt-contrib-watch
using npm install grunt-contrib-clean --save-dev
and npm install grunt-contrib-watch --save-dev
I got these warnings:
npm WARN stellarhse#1.0.0 requires a peer of grunt#~0.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-contrib-concat#0.3.0 requires a peer of grunt#~0.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-contrib-cssmin#0.10.0 requires a peer of grunt#~0.4.1 but none is installed. You must install peer dependencies yourself.
How can I fix them?
Thank you.
mostly you didn't installed grunt locally
try to install grunt locally by run this command
npm install grunt --save-dev
In case this helps anyone with a similar problem I just received this error on a successful Grunt 1.0.4 install:
grunt-contrib-concat#0.1.3 requires a peer of grunt#~0.4.0 but none is installed
and none of the above answers worked, ie:
npm update
npm install grunt-contrib-concat --save-dev
did not resolve the problem / get the latest version
The only fix was to find THE LATEST VERSION of grunt-contrib-concat on git and overwrite explicitly:
grunt-contrib-concat#1.0.1 --save-dev
I have fixed the problem,
First, Ensured that the peer dependencies section in the package.json file is empty
Second, I updated npm using
npm update
Third, install grunt cli globally using
npm install -g grunt-cli.
Finally switched to the path where the project in and complete installing grunt itself and the plugins I need and worked well.
npm install grunt --save-dev
npm install grunt-contrib-watch --save-dev
npm install grunt-contrib-clean --save-dev
Thank you.