ionic upgrade from 4 to 6 issues - ionic-framework

i have those warns... how can handle? when try i get others all the time
npm WARN deprecated #types/googlemaps#3.39.13: Types for the Google Maps browser API have moved to #types/google.maps. Note: these types are not for the googlemaps npm package, which is a Node API.
npm WARN #agm/core#3.0.0-beta.0 requires a peer of #angular/common#^9.1.0 || ^10.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN #agm/core#3.0.0-beta.0 requires a peer of #angular/core#^9.1.0 || ^10.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN #angular-devkit/build-angular#14.0.5 requires a peer of #angular/compiler-cli#^14.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN #ngtools/webpack#14.0.5 requires a peer of #angular/compiler-cli#^14.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN #angular/core#14.1.0 requires a peer of zone.js#~0.11.4 but none is installed. You must install peer dependencies yourself.
npm WARN #angular/fire#7.4.1 requires a peer of #angular/common#^12.0.0 || ^13.0.0 || ^14.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN #angular/fire#7.4.1 requires a peer of #angular/platform-browser#^12.0.0 || ^13.0.0 || ^14.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN #angular/fire#7.4.1 requires a peer of #angular/platform-browser-dynamic#^12.0.0 || ^13.0.0 || ^14.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN #angular/forms#14.1.0 requires a peer of #angular/common#14.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN #angular/forms#14.1.0 requires a peer of #angular/platform-browser#14.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN #angular/router#14.1.0 requires a peer of #angular/common#14.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN #angular/router#14.1.0 requires a peer of #angular/platform-browser#14.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN #angular/service-worker#14.1.0 requires a peer of #angular/common#14.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN #auth0/angular-jwt#5.0.2 requires a peer of #angular/common#>=9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN #ionic/angular#6.1.15 requires a peer of zone.js#>=0.11.0 but none is installed. You must install peer dependencies yourself.
npm WARN #ionic/eslint-config#0.3.0 requires a peer of eslint#>=7 but none is installed. You must install peer dependencies yourself.
npm WARN #typescript-eslint/eslint-plugin#4.33.0 requires a peer of eslint#^5.0.0 || ^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN #typescript-eslint/experimental-utils#4.33.0 requires a peer of eslint#* but none is installed. You must install peer dependencies yourself.
npm WARN #typescript-eslint/parser#4.33.0 requires a peer of eslint#^5.0.0 || ^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN #ionic/eslint-plugin#0.0.1 requires a peer of eslint#^5.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN #typescript-eslint/eslint-plugin#1.13.0 requires a peer of #typescript-eslint/parser#^1.9.0 but none is installed. You must install peer dependencies yourself.
npm WARN #typescript-eslint/eslint-plugin#1.13.0 requires a peer of eslint#^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN #typescript-eslint/experimental-utils#1.13.0 requires a peer of eslint#* but none is installed. You must install peer dependencies yourself.
npm WARN #ionic/prettier-config#2.0.0 requires a peer of prettier#^2.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords#3.5.2 requires a peer of ajv#^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN #angular/fire#5.4.2 requires a peer of #angular/common#>=6.0.0 <9 || ^9.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN #angular/fire#5.4.2 requires a peer of #angular/core#>=6.0.0 <9 || ^9.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN #angular/fire#5.4.2 requires a peer of #angular/platform-browser#>=6.0.0 <9 || ^9.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN #angular/fire#5.4.2 requires a peer of #angular/platform-browser-dynamic#>=6.0.0 <9 || ^9.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN #angular/fire#5.4.2 requires a peer of firebase#>= 5.5.7 <8 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-prettier#6.15.0 requires a peer of eslint#>=3.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-import#2.26.0 requires a peer of eslint#^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-jsdoc#39.3.3 requires a peer of eslint#^7.0.0 || ^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-prefer-arrow#1.2.3 requires a peer of eslint#>=2.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-utils#3.0.0 requires a peer of eslint#>=5 but none is installed. You must install peer dependencies yourself.

Related

SAPUI5 KARMA CI GitLab

I'm trying to set up a CI pipeline for a SAPUI5 application using the CI/CD in GitLab.
I've decided to go with the following tools:
UI5 Tooling
UIVeri5
Karma
So far the build with the UI5 Tooling was successful.
Most likely I have issues with the testing part.
Please have a look at the following files:
.gitlab-ci.yml:
image: geertjanklaps/node-cf-cli:latest
cache:
paths:
- node_modules/
stages:
- test
- build
ESLint:
stage: test
before_script:
- npm install
- npm install --global #ui5/uiveri5
- npm install -g karma-cli
- npm install --save-dev karma karma-ui5
- npm install --save-dev karma-chrome-launcher
script:
- karma start --singleRun=true
#Build MTA File:
stage: build
before_script:
- npm install --global #ui5/cli
script:
- ui5 build --all
only:
- master
karma.conf.js:
module.exports = function(config) {
config.set({
frameworks: [ "ui5" ],
ui5: {
mode: "script",
tests: [ "webapp/test/" ]
},
browsers: [ "MyHeadlessChrome" ],
singleRun: true,
customLaunchers: {
MyHeadlessChrome: {
base: 'ChromeHeadless',
flags: [
'--disable-translate',
'--disable-extensions',
'--remote-debugging-port=9223',
'--no-sandbox'
]
},
},
});
};
For deeper analyses, please look at my repo here.
Now to the problem
The job stops with the following info:
ReferenceError: sap is not defined
at node_modules/karma-ui5/lib/client/autorun.js:16:2
at node_modules/karma-ui5/lib/client/autorun.js:22:3
Please see full job log for more infos:
[0KRunning with gitlab-runner 13.5.0-rc2 (71c90c86)
[0;m[0K on docker-auto-scale fa6cab46
[0;msection_start:1603897730:resolve_secrets
[0K[0K[36;1mResolving secrets[0;m
[0;msection_end:1603897730:resolve_secrets
[0Ksection_start:1603897730:prepare_executor
[0K[0K[36;1mPreparing the "docker+machine" executor[0;m
[0;m[0KUsing Docker executor with image geertjanklaps/node-cf-cli:latest ...
[0;m[0KPulling docker image geertjanklaps/node-cf-cli:latest ...
[0;m[0KUsing docker image sha256:4d8a2c0623c41c1b33b2d9505d88a0712615ca0dc12b1deb05ea5f9ebfb43757 for geertjanklaps/node-cf-cli:latest with digest geertjanklaps/node-cf-cli#sha256:6bc976fbfae34d9d982b39331bfd842518e28da02cfacf76a2c83bab67ffb31b ...
[0;msection_end:1603897771:prepare_executor
[0Ksection_start:1603897771:prepare_script
[0K[0K[36;1mPreparing environment[0;m
[0;mRunning on runner-fa6cab46-project-22032692-concurrent-0 via runner-fa6cab46-srm-1603897681-955e55b1...
section_end:1603897774:prepare_script
[0Ksection_start:1603897774:get_sources
[0K[0K[36;1mGetting source from Git repository[0;m
[0;m[32;1m$ eval "$CI_PRE_CLONE_SCRIPT"[0;m
[32;1mFetching changes with git depth set to 50...[0;m
Initialized empty Git repository in /builds/MarvinsRoom/testproject-1/.git/
[32;1mCreated fresh repository.[0;m
[32;1mChecking out 2cde8a5a as master...[0;m
[32;1mSkipping Git submodules setup[0;m
section_end:1603897776:get_sources
[0Ksection_start:1603897776:restore_cache
[0K[0K[36;1mRestoring cache[0;m
[0;m[32;1mChecking cache for default...[0;m
Downloading cache.zip from https://storage.googleapis.com/gitlab-com-runners-cache/project/22032692/default[0;m
[32;1mSuccessfully extracted cache[0;m
section_end:1603897777:restore_cache
[0Ksection_start:1603897777:step_script
[0K[0K[36;1mExecuting "step_script" stage of the job script[0;m
[0;m[32;1m$ npm install[0;m
npm WARN deprecated http2#3.3.7: Use the built-in module in node 9.0.0 or newer, instead
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 chokidar#1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated core-js#2.6.11: core-js#<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js#3.
npm WARN deprecated fsevents#1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated circular-json#0.5.9: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated nodemailer#2.7.2: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN deprecated samsam#1.3.0: This package has been deprecated in favour of #sinonjs/samsam
npm WARN deprecated uws#9.14.0: New code is available at github.com/uNetworking/uWebSockets.js
npm WARN deprecated request#2.75.0: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated mailcomposer#4.0.1: This project is unmaintained
npm WARN deprecated socks#1.1.9: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
npm WARN deprecated har-validator#2.0.6: this library is no longer supported
npm WARN deprecated hawk#3.1.3: This module moved to #hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated node-uuid#1.4.8: Use uuid module instead
npm WARN deprecated buildmail#4.0.1: This project is unmaintained
npm WARN deprecated hoek#2.16.3: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated sntp#1.0.9: This module moved to #hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated boom#2.10.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated cryptiles#2.0.5: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
> uws#9.14.0 install /builds/MarvinsRoom/testproject-1/node_modules/uws
> node-gyp rebuild > build_log.txt 2>&1 || exit 0
> core-js#2.6.11 postinstall /builds/MarvinsRoom/testproject-1/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
> sinon#4.4.8 postinstall /builds/MarvinsRoom/testproject-1/node_modules/sinon
> node scripts/support-sinon.js
Have some â¤ï¸ for Sinon? You can support the project via Open Collective:
> https://opencollective.com/sinon/donate
npm WARN notsup Unsupported engine for http2#3.3.7: wanted: {"node":">=0.12.0 <9.0.0"} (current: {"node":"12.16.1","npm":"6.14.1"})
npm WARN notsup Not compatible with your version of node/npm: http2#3.3.7
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 944 packages from 1379 contributors and audited 940 packages in 42.322s
2 packages are looking for funding
run `npm fund` for details
found 116 vulnerabilities (52 low, 20 moderate, 44 high)
run `npm audit fix` to fix them, or `npm audit` for details
[32;1m$ npm install --global #ui5/uiveri5[0;m
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
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 har-validator#5.1.5: this library is no longer supported
/usr/bin/uiveri5 -> /usr/lib/node_modules/#ui5/uiveri5/bin/uiveri5
+ #ui5/uiveri5#1.45.1
added 182 packages from 231 contributors in 9.259s
[32;1m$ npm install -g karma-cli[0;m
/usr/bin/karma -> /usr/lib/node_modules/karma-cli/bin/karma
+ karma-cli#2.0.0
added 6 packages from 21 contributors in 0.74s
[32;1m$ npm install --save-dev karma karma-ui5[0;m
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated chokidar#1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated core-js#2.6.11: core-js#<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js#3.
npm WARN deprecated fsevents#1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated nodemailer#2.7.2: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN deprecated circular-json#0.5.9: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated request#2.75.0: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator#2.0.6: this library is no longer supported
npm WARN deprecated hawk#3.1.3: This module moved to #hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated node-uuid#1.4.8: Use uuid module instead
npm WARN deprecated hoek#2.16.3: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated boom#2.10.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated sntp#1.0.9: This module moved to #hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated cryptiles#2.0.5: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated socks#1.1.9: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
npm WARN deprecated mailcomposer#4.0.1: This project is unmaintained
npm WARN deprecated buildmail#4.0.1: This project is unmaintained
npm WARN deprecated uws#9.14.0: New code is available at github.com/uNetworking/uWebSockets.js
npm WARN rm not removing /builds/MarvinsRoom/testproject-1/node_modules/.bin/uuid as it wasn't installed by /builds/MarvinsRoom/testproject-1/node_modules/node-uuid
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#~2.1.2 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.0.0 (node_modules/#sap/grunt-sapui5-bestpractice-test/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ karma#5.2.3
+ karma-ui5#2.3.1
added 445 packages from 660 contributors, removed 14 packages, updated 38 packages, moved 27 packages and audited 1376 packages in 32.8s
32 packages are looking for funding
run `npm fund` for details
found 127 vulnerabilities (64 low, 20 moderate, 43 high)
run `npm audit fix` to fix them, or `npm audit` for details
[32;1m$ npm install --save-dev karma-chrome-launcher[0;m
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.13 (node_modules/#sap/grunt-sapui5-bestpractice-test/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ karma-chrome-launcher#3.1.0
added 2 packages from 29 contributors, updated 1 package and audited 1378 packages in 12.365s
34 packages are looking for funding
run `npm fund` for details
found 127 vulnerabilities (64 low, 20 moderate, 43 high)
run `npm audit fix` to fix them, or `npm audit` for details
[32;1m$ karma start --singleRun=true[0;m
[32m28 10 2020 15:11:21.695:INFO [karma-server]: [39mKarma v5.2.3 server started at http://localhost:9876/
[32m28 10 2020 15:11:21.698:INFO [launcher]: [39mLaunching browsers MyHeadlessChrome with concurrency unlimited
[32m28 10 2020 15:11:21.702:INFO [launcher]: [39mStarting browser ChromeHeadless
[32m28 10 2020 15:11:22.071:INFO [Chromium 80.0.3987.87 (Ubuntu 0.0.0)]: [39mConnected on socket PNW35HCgiwnOH-7cAAAA with id 80702627
[33m28 10 2020 15:11:22.137:WARN [web-server]: [39m404: /resources/sap-ui-core.js
[31mChromium 80.0.3987.87 (Ubuntu 0.0.0) ERROR[39m
Uncaught ReferenceError: sap is not defined
at node_modules/karma-ui5/lib/client/autorun.js:16:2
ReferenceError: sap is not defined
at node_modules/karma-ui5/lib/client/autorun.js:16:2
at node_modules/karma-ui5/lib/client/autorun.js:22:3
section_end:1603897883:step_script
[0Ksection_start:1603897883:cleanup_file_variables
[0K[0K[36;1mCleaning up file based variables[0;m
[0;msection_end:1603897885:cleanup_file_variables
[0K[31;1mERROR: Job failed: exit code 1
[0;m
Did you configure your karma-ci.conf.js according to https://github.com/SAP/karma-ui5?
It should look like:
module.exports = function(config) {
config.set({
frameworks: ["ui5", "qunit", "sinon"],
ui5: {
url: "https://openui5.hana.ondemand.com",
mode: "script",
config: {
async: true,
resourceRoots: {
"sap.ui.demo.todo": "./base/webapp"
}
},
tests: [
"sap/ui/demo/todo/test/unit/AllTests"
]
},
browsers: [ "Chrome" ]
});
};

Ionic native plugins not syncing showing error: You must install peer dependencies yourself

I have an ionic 3, where I had to update the Camera plugin.
I go the following message:
npm WARN #ionic-native/camera#5.0.0 requires a peer of #ionic-native/core#5.0.0 but none is installed. You must install peer dependencies yourself.
So I then manually installed native/core#5.0.0
After doing that, I received a bunch of warnings:
npm WARN #ionic-native/clipboard#4.9.1 requires a peer of #ionic-native/core#^4.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN #ionic-native/device#4.7.0 requires a peer of #ionic-native/core#^4.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN #ionic-native/file#4.9.1 requires a peer of #ionic-native/core#^4.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN #ionic-native/file-transfer#4.9.1 requires a peer of #ionic-native/core#^4.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN #ionic-native/in-app-browser#4.12.0 requires a peer of #ionic-native/core#^4.11.0 but none is installed. You must install peer dependencies yourself.
npm WARN #ionic-native/network#4.9.1 requires a peer of #ionic-native/core#^4.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN #ionic-native/screen-orientation#4.7.0 requires a peer of #ionic-native/core#^4.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN #ionic-native/splash-screen#4.5.3 requires a peer of #ionic-native/core#^4.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN #ionic-native/status-bar#4.5.3 requires a peer of #ionic-native/core#^4.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN #ionic-native/toast#4.7.0 requires a peer of #ionic-native/core#^4.2.0 but none is installed. You must install peer dependencies yourself.
I'm not sure what I should do here...
Should I try to find the latest version for each of the new warnings and replace them????
I'm afraid I will break my app, but don't know.
Thanks for any advice!!

npm WARN deprecated browserslist#2.11.3: Browserslist 2 could fail on reading Browserslist >3.0

I'm using ionic 3 whatsapp clone github project but when i run ionic serve command got this error when i try to install appscripts Error npm WARN deprecated browserslist#2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
Uninstal Ionic and Cordova:
npm uninstall cordova ionic
Then clean cache:
npm cache clean -f
Then install ionic and cordova again:
npm install -g ionic#3.4.0
npm install -g cordova#7.0.1
Worked for me!
I had the same problem and fixed it by using the following command in the project directory:
npm install
This will install needed packages, so the project can work properly.
See also:
npm deprecated WARN for newly created app #4926
The error itself comes from the package.json file in the browserslist folder in your project.
"deprecated": "Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools."
I'm installing Laravel but get the same error.
I allowed the npm install to go all thr way through and scrolled up. There are some issues present in mine. Will possibly say something like the below.
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 img-loader#3.0.0 requires a peer of imagemin#^5.0.0 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 notsup SKIPPING OPTIONAL DEPENDENCY:
Unsupported platform for fsevents#1.2.4: wanted
{"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
You can run npm install again if you'd like and this should give you the new errors in a more compact area.
-note: notice the commands below correspond with what is stated after "requires a peer of..."
npm i ajv
npm i imagemin#5.0.0
npm install
Not sure why, but the imagemin wouldn't work unless I specified the version.
At this point I only had one error left
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4
(node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY:
Unsupported platform for fsevents#1.2.4: wanted
{"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
I believe this has to do with me being on a windows machine. If you get this error just force it. If anyone has a better solution at this point I'd love to hear it.
npm i -f
You could try a reset.
rm -rf node_modules
rm package-lock.json yarn.lock
npm cache clear --force
npm install
I fixed this issue by putting required binaries in the .bin folder under node_modules folder

Probleme to install Superdesk Newsroom

I'm trying to install newsromm from https://github.com/superdesk/newsroom
with installation with NPM I've these errors :
npm WARN deprecated babel-preset-es2015#6.24.1: Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN deprecated nomnom#1.6.2: Package no longer supported. Contact support#npmjs.com for more info.
> node-sass#4.9.0 install /root/newsroom/node_modules/node-sass
> node scripts/install.js
internal/modules/cjs/loader.js:596
throw err;
^
Error: Cannot find module '/root/newsroom/node_modules/node-sass/scripts/install.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
at Function.Module._load (internal/modules/cjs/loader.js:520:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
at startup (internal/bootstrap/node.js:240:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:564:3)
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 newsroom No repository field.
npm WARN newsroom No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass#4.9.0 install: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#4.9.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-07-01T18_21_45_224Z-debug.log
and with installation with YARN everything looks good :
yarn install v1.7.0
(node:40422) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents#1.1.3: The platform "linux" is incompatible with this module.
info "fsevents#1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > react-toggle#4.0.2" has unmet peer dependency "prop-types#^15.3.0".
[4/4] Building fresh packages...
Done in 236.13s.
but when I start the app , I'v this message:
honcho start -p 5050
18:17:07 system | web.1 started (pid=52710)
18:17:07 system | websocket.1 started (pid=52711)
18:17:08 websocket.1 | /usr/bin/python: No module named superdesk
18:17:08 system | websocket.1 stopped (rc=1)
18:17:08 system | sending SIGTERM to web.v
How can I resolve this ?
Blockquote
Newsroom is just a plugin for Superdesk. You need to install Superdesk as well from https://github.com/superdesk/superdesk.

Ionic installation error!! Ubuntu

I cannot install Ionic , i have installed cordova 6.4.0 , my npm 4.0.2, node v6.9.1
I had Ionic installed previously , i uninstalled and now unable to install it again using npm install -g ionic I get this dependency error as follows:
ionic2#2.0.0-rc.1
├── UNMET PEER DEPENDENCY #angular/common#2.0.0
├── UNMET PEER DEPENDENCY #angular/compiler#2.0.0
├── UNMET PEER DEPENDENCY #angular/core#2.0.0
├── UNMET PEER DEPENDENCY #angular/platform-browser#2.0.0
└── UNMET PEER DEPENDENCY typescript#^2.0.2
npm WARN #angular/platform-browser-dynamic#2.1.0 requires a peer of #angular/core#2.1.0 but none was installed.
npm WARN #angular/platform-browser-dynamic#2.1.0 requires a peer of #angular/common#2.1.0 but none was installed.
npm WARN #angular/platform-browser-dynamic#2.1.0 requires a peer of #angular/compiler#2.1.0 but none was installed.
npm WARN #angular/platform-browser-dynamic#2.1.0 requires a peer of #angular/platform-browser#2.1.0 but none was installed.
npm WARN #angular/compiler-cli#0.6.2 requires a peer of typescript#^2.0.2 but none was installed.
npm WARN #angular/tsc-wrapped#0.3.0 requires a peer of typescript#^2.0.2 but none was installed.
npm WARN tsickle#0.1.7 requires a peer of typescript#^2.0.0 || ^2.1.0-dev but none was installed.
Please someone help!!!!
Hi try installing nvm from here.
Then run this command:
nvm install 5.11.0
Wait for the node 5.11.0 installation and then:
nvm use 5.11.0
Now, while you are using node 5.11.0 run:
npm i -g ionic cordova
This is my setup and im able to work with ionic2 RC3.