npm ERESOLVE unable to resolve dependency tree NestJs Passport - node.js

I have following package.json
{
"dependencies": {
"#elastic/elasticsearch": "^7.16.0",
"#nestjs/common": "^8.2.4",
"#nestjs/config": "^1.1.5",
"#nestjs/core": "^8.2.4",
"#nestjs/jwt": "^8.0.0",
"#nestjs/microservices": "^8.2.4",
"#nestjs/passport": "^8.0.1",
"#nestjs/platform-express": "^8.2.4",
"#nestjs/testing": "^8.2.4",
"#nestjs/websockets": "^8.2.4",
"#nuxt/content": "^1.15.1",
"#nuxt/typescript": "^2.8.1",
"#nuxtjs/axios": "^5.13.6",
"#nuxtjs/pwa": "^3.3.5",
"#riophae/vue-treeselect": "0.4.0",
"#typegoose/typegoose": "^9.4.0",
"#types/fabric": "^4.5.6",
"#types/multer": "^1.4.7",
"acorn": "^8.6.0",
"adm-zip": "^0.5.9",
"ajv": "^8.8.2",
"amqplib": "^0.8.0",
"animejs": "^3.2.1",
"axios": "^0.24.0",
"bootstrap": "^5.1.3",
"connect-mongo": "^4.6.0",
"copyfiles": "^2.4.1",
"core-js": "^3.20.1",
"cross-env": "^7.0.3",
"element-theme-dark": "^1.0.3",
"element-ui": "^2.15.6",
"express": "^4.17.2",
"express-session": "^1.17.2",
"fabric": "^4.6.0",
"file-saver": "^2.0.5",
"glob": "^7.2.0",
"http-status-codes": "^2.1.4",
"jQuery-QueryBuilder": "^2.6.2",
"jquery": "^3.6.0",
"jquery-ui-dist": "^1.13.0",
"material-icons": "^1.10.4",
"mongodb": "^4.2.2",
"mongoose": "^6.1.3",
"multer": "^1.4.4",
"node-cron": "^3.0.0",
"nprogress": "^0.2.0",
"nuxt": "^2.15.8",
"nuxt-class-component": "^1.3.0",
"oidc-client": "^1.11.5",
"openid-client": "^5.1.1",
"passport": "^0.5.2",
"passport-jwt": "^4.0.0",
"passport-local": "^1.0.0",
"popper.js": "^1.16.1",
"redis": "^4.0.1",
"reflect-metadata": "^0.1.13",
"regenerator-runtime": "^0.13.9",
"register-service-worker": "^1.7.2",
"rimraf": "^3.0.2",
"rxjs": "^7.4.0",
"splitpanes": "^2.3.8",
"ts-loader": "^9.2.6",
"typegoose": "^5.9.1",
"typeorm": "^0.2.41",
"typescript": "^4.5.4",
"vue": "^2.6.14",
"vue-class-component": "^7.2.6",
"vue-context": "^6.0.0",
"vue-drag-drop": "^1.1.4",
"vue-grid-layout": "^2.3.12",
"vue-property-decorator": "^9.1.2",
"vue-quill-editor": "^3.0.6",
"vue-router": "^3.5.3",
"vue-runtime-helpers": "^1.1.2",
"vue-server-renderer": "^2.6.14",
"vue-simple-uploader": "^0.7.6",
"vuetify": "^2.6.1",
"vuetify-loader": "^1.7.3",
"vuex-class": "^0.3.2",
"vuex-class-component": "^2.3.6",
"webpack-node-externals": "^3.0.0",
"winston": "^3.3.3"
},
"devDependencies": {
"#babel/plugin-transform-modules-commonjs": "^7.16.5",
"#nuxt/config": "^2.15.8",
"#nuxt/types": "^2.15.8",
"#nuxt/typescript-build": "^2.1.0",
"#nuxtjs/stylelint-module": "^4.1.0",
"#types/adm-zip": "^0.4.34",
"#types/amqplib": "^0.8.2",
"#types/animejs": "^3.1.4",
"#types/chai": "^4.3.0",
"#types/file-saver": "^2.0.4",
"#types/jest": "^27.0.3",
"#types/jquery": "^3.5.11",
"#types/jqueryui": "^1.12.16",
"#types/mocha": "^9.0.0",
"#types/mongodb": "^4.0.6",
"#types/node": "^17.0.4",
"#types/nprogress": "0.2.0",
"#types/quill": "^2.0.9",
"#types/redis": "^4.0.10",
"#types/splitpanes": "^2.2.1",
"#types/webpack-env": "^1.16.3",
"#typescript-eslint/eslint-plugin": "^5.8.0",
"#typescript-eslint/eslint-plugin-tslint": "^5.8.0",
"#typescript-eslint/parser": "^5.8.0",
"#vue/cli-plugin-babel": "^4.5.15",
"#vue/cli-plugin-e2e-cypress": "^4.5.15",
"#vue/cli-plugin-pwa": "^4.5.15",
"#vue/cli-plugin-typescript": "^4.5.15",
"#vue/cli-plugin-unit-mocha": "^4.5.15",
"#vue/cli-service": "^4.5.15",
"#vue/test-utils": "^1.3.0",
"babel-plugin-component": "^1.1.1",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-decorators-legacy": "^1.3.5",
"chai": "^4.3.4",
"eslint": "^8.5.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jsdoc": "^37.4.0",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-unicorn": "^39.0.0",
"jest": "^27.4.5",
"lint-staged": "^12.1.4",
"node-sass": "^7.0.0",
"nodemon": "^2.0.15",
"nuxt-property-decorator": "^2.9.1",
"nuxt-ts": "^2.8.1",
"prettier": "^2.5.1",
"sass-loader": "^12.4.0",
"stylus": "^0.56.0",
"stylus-loader": "^6.2.0",
"ts-node": "^10.4.0",
"tsconfig-paths": "^3.12.0",
"tslint": "^5.20.1",
"tslint-config-prettier": "^1.18.0",
"tslint-plugin-prettier": "^2.3.0",
"vue-template-compiler": "^2.6.14",
"webpack": "^5.65.0",
"webpack-cli": "^4.9.1",
"webpack-shell-plugin": "^0.5.0"
}
}
when I try to install above dependencies I am getting following error.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: ecdisco#1.0.0
npm ERR! Found: passport#0.5.2
npm ERR! node_modules/passport
npm ERR! passport#"^0.5.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer passport#"^0.4.0" from #nestjs/passport#8.0.1
npm ERR! node_modules/#nestjs/passport
npm ERR! #nestjs/passport#"^8.0.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\user\AppData\Local\npm-cache\eresolve-report.txt for a full report.
My Node version is: v16.13.0
My npm version is: 8.1.0
I don't want to use incorrect dependency by using --force and --legacy-peer-deps options. What solution do I have?

To resolve this issue update the "passport" lib version in your package.json: from "passport": "^0.5.2",
to "passport": "^0.4.0",
so it's same as used in #nestjs/passport#8.0.1.

that's happens when you use other version from node and npm.
delete your node_modules folder
and
try again while you use flag --force

Related

Getting mongoose error on building NestJs project

I have used mongoose package in my nest project but when I am trying to build the project using npm run build.Then its throwing below error in my console:
node_modules/mongoose/node_modules/mongodb/mongodb.d.ts:34:15 - error TS2305: Module '"tls"'
has no exported member 'TLSSocketOptions'.
34 import type { TLSSocketOptions } from 'tls';
I have even updated the mongoose package to the latest version.Then also I am getting the same error:
Below are my dependencies inside package.json file:
"dependencies": {
"#apollo/gateway": "^0.38.0",
"#google-cloud/translate": "^6.2.1",
"#nestjs/common": "^8.0.6",
"#nestjs/core": "^8.0.6",
"#nestjs/cqrs": "^8.0.0",
"#nestjs/graphql": "^8.0.2",
"#nestjs/microservices": "^8.0.6",
"#nestjs/mongoose": "^9.0.3",
"#nestjs/platform-express": "^8.0.6",
"#types/luxon": "^1.15.1",
"apollo-server-express": "^2.25.2",
"bunyan": "^1.8.12",
"bunyan-rotating-file-stream": "^1.6.3",
"connect-redis": "^3.4.1",
"consul": "^0.40.0",
"device-detector-js": "^3.0.3",
"elasticsearch": "^16.2.0",
"express-session": "^1.16.2",
"firebase-admin": "^9.4.2",
"graphql": "^14.7.0",
"graphql-tools": "^4.0.4",
"json-rules-engine": "^3.1.0",
"kafkajs": "^1.15.0",
"lodash": "^4.17.21",
"luxon": "^1.16.0",
"moneysafe": "^2.2.1",
"mongodb": "^3.5.9",
"mongoose": "^6.3.0",
"nestjs-i18n": "^8.1.1",
"node-wit": "^6.0.0",
"reflect-metadata": "^0.1.12",
"rimraf": "^2.6.2",
"rxjs": "^7.3.0",
"ts-morph": "^12.0.0",
"typescript": "^4.3.5",
"uuid": "^3.3.2"
},
"devDependencies": {
"#nestjs/testing": "^5.1.0",
"#types/jest": "^23.3.1",
"#types/lodash": "^4.14.134",
"#types/node": "^10.7.1",
"#types/supertest": "^2.0.5",
"jest": "^23.5.0",
"nodemon": "^1.18.3",
"prettier": "^1.14.2",
"supertest": "^3.1.0",
"ts-jest": "^23.1.3",
"ts-loader": "^4.4.2",
"ts-node": "^7.0.1",
"tsconfig-paths": "^3.5.0",
"tslint": "5.11.0"
}
Someone let me know how can I resolve this error.Any help on this will be really appreciated.
I fixed this by updating #types/node to the latest version. This specific error message is then fixed!

Heroku ReactJS deployment

I'm taking a ReactJS course, and I am on the final lesson, which is posting my app to Heroku. However, whenever I try to do this, I get these errors:
/tmp/build_64ba7376/node_modules/webpack-cli/bin/cli.js:93
throw err;
^
Error: Cannot find module 'uglifyjs-webpack-plugin'
...
remote: npm ERR! code ELIFECYCLE
remote: npm ERR! errno 1
remote: npm ERR! react-project#1.0.0 build: `cross-env NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --color
...
To https://git.heroku.com/tvh-bottega-react-js-project.git
! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/tvh-bottega-react-js-project.git'
And these are the app's dependencies:
"dependencies": {​​​​​​​​
"#fortawesome/fontawesome-svg-core": "^1.2.35",
"#fortawesome/free-solid-svg-icons": "^5.15.3",
"#fortawesome/react-fontawesome": "^0.1.14",
"ajv": "6.12.0",
"autoprefixer": "^9.1.0",
"axios": "^0.21.1",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-eslint": "^7.2.3",
"babel-loader": "^7.1.5",
"babel-plugin-async-to-promises": "^1.0.5",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.7.0",
"clean-webpack-plugin": "^0.1.16",
"copy-webpack-plugin": "^4.5.2",
"cross-env": "^5.2.0",
"css-loader": "^1.0.0",
"debug": "^2.6.9",
"draft-js": "^0.11.7",
"draftjs-to-html": "^0.9.1",
"eslint": "^4.2.0",
"eslint-loader": "^1.9.0",
"eslint-plugin-react": "^7.1.0",
"express": "4.17.1",
"extract-loader": "^2.0.1",
"file-loader": "^1.1.11",
"html-loader": "^0.5.5",
"html-to-draftjs": "^1.5.0",
"html-webpack-plugin": "^3.2.0",
"moment": "^2.29.1",
"node-sass": "^4.13.1",
"postcss-loader": "^2.1.6",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-draft-wysiwyg": "^1.14.7",
"react-dropzone-component": "^3.2.0",
"react-html-parser": "^2.0.2",
"react-modal": "^3.14.3",
"react-redux": "7.2.0",
"react-router": "5.1.2",
"react-router-dom": "5.1.2",
"react-truncate": "^2.4.0",
"redux": "4.0.5",
"sass-loader": "^7.1.0",
"striptags": "^3.2.0",
"style-loader": "^0.21.0",
"webpack": "4.42.1",
"webpack-cli": "3.3.11",
"webpack-dev-middleware": "3.7.2",
"webpack-dev-server": "3.10.3",
"webpack-hot-middleware": "2.25.0",
"webpack-merge": "4.2.2"
}​​​​​​​​,
"devDependencies": {​​​​​​​​
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-react": "^6.24.1",
"babel-register": "^6.26.0",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"uglifyjs-webpack-plugin": "^1.3.0"
}​​​​​​​​
NPM (version 6.x I believe), NodeJS(I think the latest version), Axios, React Dropzone Component, Font Awesome, React Modal Library, DraftJS, React HTML Parser, Striptags, and Truncate packages installed. I've tried re-installing uglifyjs but still get the same error. I've tried to repair npm (as it has some errors), but every attempt ends in failure (it says something about Python in the stack trace).
I've followed along with Heroku's basic troubleshooting guides, but my builds always fail at this stage. What should I do to fix this?
Try to install "uglifyjs-webpack-plugin" not as devDependencies and try to deploy again.

This type of error comes:- Cannot find module 'sharp'

Error: Cannot find module 'sharp'
Require stack:
- D:\Marketing\sbj-react\suburban\node_modules\gatsby-plugin-manifest\safe-sharp.js
- D:\Marketing\sbj-react\suburban\node_modules\gatsby-plugin-manifest\gatsby-node.js
- D:\Marketing\sbj-react\suburban\node_modules\gatsby\dist\bootstrap\resolve-module-exports.js
- D:\Marketing\sbj-react\suburban\node_modules\gatsby\dist\bootstrap\load-plugins\validate.js
- D:\Marketing\sbj-react\suburban\node_modules\gatsby\dist\bootstrap\load-plugins\load.js
- D:\Marketing\sbj-react\suburban\node_modules\gatsby\dist\bootstrap\load-plugins\index.js
- D:\Marketing\sbj-react\suburban\node_modules\gatsby\dist\bootstrap\index.js
- D:\Marketing\sbj-react\suburban\node_modules\gatsby\dist\commands\develop.js
- D:\Marketing\sbj-react\suburban\node_modules\gatsby-cli\lib\create-cli.js
- D:\Marketing\sbj-react\suburban\node_modules\gatsby-cli\lib\index.js
- D:\Marketing\sbj-react\suburban\node_modules\gatsby\dist\bin\gatsby.js
1) npm install
2) npm also check with npm install --unsafe perm
3) npm start
4) npm install sharp
But still have same problem with me please resolve my question.
This is my package.json
{
"name": "Ashish",
"description": "Ashish Group Project",
"version": "1.0.0",
"author": "AshishBhangade <ashishbhangade#gmail.com>",
"dependencies": {
"axios": "^0.18.0",
"babel-plugin-styled-components": "^1.10.0",
"base-64": "^0.1.0",
"bcryptjs": "^2.4.3",
"bootstrap": "^4.1.3",
"gatsby": "^2.0.53",
"gatsby-background-image": "^0.9.11",
"gatsby-graphiql-explorer": "^0.2.29",
"gatsby-image": "^2.0.20",
"gatsby-plugin-compression": "0.0.1",
"gatsby-plugin-compression-v2": "^0.1.0",
"gatsby-plugin-drift": "^1.0.0",
"gatsby-plugin-facebook-analytics": "^2.0.2",
"gatsby-plugin-facebook-pixel": "^1.0.3",
"gatsby-plugin-facebook-sdk": "^1.0.6",
"gatsby-plugin-google-analytics": "^2.0.9",
"gatsby-plugin-google-gtag": "^1.0.8",
"gatsby-plugin-google-tagmanager": "^2.0.7",
"gatsby-plugin-hotjar": "^1.0.1",
"gatsby-plugin-manifest": "^2.0.9",
"gatsby-plugin-netlify": "^2.0.6",
"gatsby-plugin-offline": "^2.0.21",
"gatsby-plugin-react-helmet": "^3.0.2",
"gatsby-plugin-robots-txt": "^1.4.0",
"gatsby-plugin-sass": "^2.0.5",
"gatsby-plugin-sentry": "^1.0.0",
"gatsby-plugin-sharp": "^2.0.12",
"gatsby-plugin-sitemap": "^2.0.4",
"gatsby-plugin-styled-components": "^3.0.4",
"gatsby-plugin-zopfli": "^1.0.2",
"gatsby-source-apiserver": "^2.1.4",
"gatsby-source-filesystem": "^2.0.8",
"gatsby-transformer-sharp": "^2.1.8",
"jquery": "^3.3.1",
"logrocket": "^1.0.6",
"logrocket-react": "^4.0.1",
"moment": "^2.24.0",
"moment-timezone": "^0.5.23",
"node-sass": "^4.10.0",
"perm": "^1.0.0",
"react": "^16.6.3",
"react-bootstrap": "^0.32.4",
"react-bootstrap-time-picker": "^1.0.3",
"react-datepicker": "^2.0.0",
"react-device-detect": "^1.11.14",
"react-dom": "^16.6.3",
"react-ga": "^2.5.6",
"react-helmet": "^5.2.0",
"react-input-mask": "^2.0.4",
"react-number-format": "^4.0.6",
"react-otp-input": "^0.3.1",
"react-phone-input-2": "^2.11.0",
"react-places-autocomplete": "^7.2.1",
"react-popper": "^1.3.2",
"react-scroll": "^1.7.12",
"react-select": "^3.0.8",
"react-slick": "^0.23.2",
"reactstrap": "^6.5.0",
"slick-carousel": "^1.8.1",
"socket.io-client": "^2.2.0",
"styled-components": "^4.1.3",
"universal-cookie": "^3.0.7"
}
}
I had the same problem and solved with
npm install sharp
I was getting the same error on a mac and this fixed my issue
Basically:
delete node_modules folder
xcode-select --install
close and open terminal
yarn install (I assume it would also work with npm install)
npm rebuild --verbose sharp
this single line command helped me. This was a magic.

heroku node deployment(react-boilerplate) sh: 1: node-pre-gyp: not found error

I'm getting error when deploying react-boilerplate on heroku with feathers, nodejs, mongodb, react. I specified up to date versions in package.json, and tried building with both npm and yarn but both fail. I appreciate your help!
"engines": {
"npm": ">=6.4.1",
"node": ">=v8.12.0",
"yarn": ">=1.10.1"
},
trial 1:
install with npm. error: sh: 1: node-pre-gyp: not found
NPM_CONFIG_LOGLEVEL=error
NPM_CONFIG_PRODUCTION=true
YARN_PRODUCTION=false
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=true
-----> Installing binaries
engines.node (package.json): >=v8.12.0
engines.npm (package.json): >=6.4.1
Resolving node version >=v8.12.0...
Downloading and installing node 10.12.0...
Bootstrapping npm >=6.4.1 (replacing 6.4.1)...
npm >=6.4.1 installed
Resolving yarn version >=1.10.1...
Downloading and installing yarn (1.12.0)...
Installed yarn 1.12.0
> grpc#1.15.1 install /tmp/build_e7799f363b624e57eda6680a757c4fd4/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library
sh: 1: node-pre-gyp: not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! grpc#1.15.1 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the grpc#1.15.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
trial 2:
install with yarn. error: Error: spawn webpack ENOENT
NPM_CONFIG_LOGLEVEL=error
YARN_PRODUCTION=true
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=true
-----> Installing binaries
engines.node (package.json): >=v8.12.0
engines.npm (package.json): >=6.4.1
engines.yarn (package.json): >=1.10.1
Resolving node version >=v8.12.0...
Downloading and installing node 10.12.0...
Bootstrapping npm >=6.4.1 (replacing 6.4.1)...
npm >=6.4.1 installed
Resolving yarn version >=1.10.1...
Downloading and installing yarn (1.12.0)...
Installed yarn 1.12.0
> seunghunlee-software#3.6.0 build /tmp/build_edb00e4a7279e6636f35f9ea79a9d0f8
> cross-env NODE_ENV=production webpack --config internals/webpack/webpack.prod.babel.js --color -p --progress --hide-modules --display-optimization-bailout
events.js:167
throw er; // Unhandled 'error' event
^
Error: spawn webpack ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
at onErrorNT (internal/child_process.js:407:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:744:11)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)
at onErrorNT (internal/child_process.js:407:16)
[... lines matching original stack trace ...]
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
//package.json
"dependencies": {
"#feathersjs/authentication": "^2.0.1",
"#feathersjs/authentication-client": "^1.0.6",
"#feathersjs/authentication-jwt": "^2.0.0",
"#feathersjs/authentication-local": "^1.0.2",
"#feathersjs/authentication-oauth2": "^1.2.2",
"#feathersjs/client": "^3.7.3",
"#feathersjs/configuration": "^1.0.1",
"#feathersjs/errors": "^3.2.0",
"#feathersjs/express": "^1.1.2",
"#feathersjs/feathers": "^3.2.3",
"#feathersjs/socketio": "^3.0.1",
"#feathersjs/socketio-client": "^1.1.4",
"#google-cloud/vision": "^0.19.0",
"Dante2": "0.5.0-rc5",
"antd": "^3.10.1",
"apiai": "^4.0.3",
"axios": "^0.18.0",
"babel-polyfill": "6.26.0",
"body-parser": "^1.18.3",
"chalk": "2.4.1",
"compression": "1.7.2",
"cors": "^2.8.4",
"cross-env": "5.2.0",
"disqus-react": "^1.0.5",
"dotenv": "^6.0.0",
"draft-js": "^0.10.5",
"draftjs-to-html": "^0.8.4",
"express": "4.16.3",
"faker": "^4.1.0",
"feathers-mongoose": "^6.1.4",
"feathers-sync": "^1.0.3",
"fontfaceobserver": "2.0.13",
"googleapis": "^32.0.0",
"helmet": "^3.9.0",
"heroku-ssl-redirect": "^0.0.4",
"history": "4.7.2",
"hoist-non-react-statics": "2.5.5",
"html-to-draftjs": "^1.4.0",
"immutability-helper": "2.4.0",
"immutable": "3.8.2",
"intl": "1.2.5",
"invariant": "2.2.4",
"ip": "1.1.5",
"lodash": "4.17.10",
"lqip.macro": "^0.1.5",
"minimist": "1.2.0",
"moment": "^2.22.2",
"moment-range": "^4.0.1",
"mongoose": "^5.2.13",
"passport-facebook": "^2.1.1",
"passport-facebook-token": "^3.3.0",
"passport-google-oauth2": "^0.1.6",
"passport-google-oauth20": "^1.0.0",
"passport-google-token": "^0.1.2",
"pica": "^4.1.1",
"prismjs": "^1.15.0",
"prop-types": "15.6.1",
"react": "16.4.1",
"react-burger-menu": "^2.5.4",
"react-camera": "^0.1.3",
"react-color": "^2.14.1",
"react-cookie-consent": "^1.9.0",
"react-datepicker": "^1.4.1",
"react-dnd": "^2.6.0",
"react-dnd-html5-backend": "^2.6.0",
"react-dom": "16.4.1",
"react-draft-wysiwyg": "^1.12.13",
"react-ga": "^2.5.3",
"react-helmet": "5.2.0",
"react-ideal-image": "^0.0.5",
"react-image-gallery": "^0.8.6",
"react-images": "^0.5.13",
"react-intl": "2.4.0",
"react-lazyload": "^2.3.0",
"react-loadable": "5.4.0",
"react-redux": "5.0.7",
"react-router-dom": "4.3.1",
"react-router-redux": "5.0.0-alpha.9",
"react-typist": "^2.0.4",
"react-vis": "^1.9.2",
"reactcss": "^1.2.3",
"redux": "4.0.0",
"redux-form": "^7.3.0",
"redux-form-antd": "^1.0.5",
"redux-immutable": "4.0.0",
"redux-persist": "^5.9.1",
"redux-saga": "0.16.0",
"redux-thunk": "^2.3.0",
"reselect": "3.0.1",
"sanitize.css": "4.1.0",
"serve-favicon": "^2.4.5",
"socket.io": "^2.0.4",
"socket.io-client": "^2.1.1",
"spotify-web-api-node": "^3.1.1",
"styled-components": "3.3.2",
"uuid": "^3.3.2",
"voucher-code-generator": "^1.1.1",
"warning": "4.0.1",
"web3": "^1.0.0-beta.36",
"whatwg-fetch": "2.0.4",
"winston": "^3.0.0"
},
"devDependencies": {
"add-asset-html-webpack-plugin": "2.1.3",
"babel-cli": "6.26.0",
"babel-core": "6.26.3",
"babel-eslint": "8.2.3",
"babel-loader": "7.1.4",
"babel-plugin-dynamic-import-node": "1.2.0",
"babel-plugin-import": "^1.10.0",
"babel-plugin-react-intl": "2.4.0",
"babel-plugin-react-transform": "3.0.0",
"babel-plugin-styled-components": "1.5.1",
"babel-plugin-transform-es2015-modules-commonjs": "6.26.2",
"babel-plugin-transform-react-constant-elements": "6.23.0",
"babel-plugin-transform-react-inline-elements": "6.22.0",
"babel-plugin-transform-react-jsx-source": "6.22.0",
"babel-plugin-transform-react-remove-prop-types": "0.4.13",
"babel-preset-env": "1.7.0",
"babel-preset-react": "6.24.1",
"babel-preset-stage-0": "6.24.1",
"circular-dependency-plugin": "5.0.2",
"coveralls": "3.0.1",
"css-loader": "0.28.11",
"enzyme": "3.3.0",
"enzyme-adapter-react-16": "1.1.1",
"enzyme-to-json": "3.3.4",
"eslint": "4.19.1",
"eslint-config-airbnb": "16.1.0",
"eslint-config-airbnb-base": "12.1.0",
"eslint-config-prettier": "2.9.0",
"eslint-import-resolver-webpack": "0.10.0",
"eslint-plugin-import": "2.12.0",
"eslint-plugin-jsx-a11y": "6.0.3",
"eslint-plugin-prettier": "2.6.0",
"eslint-plugin-react": "7.9.1",
"eslint-plugin-redux-saga": "0.9.0",
"eventsource-polyfill": "0.9.6",
"exports-loader": "0.7.0",
"feathers-memory": "^2.1.0",
"file-loader": "1.1.11",
"html-loader": "0.5.5",
"html-webpack-plugin": "3.2.0",
"husky": "0.14.3",
"image-webpack-loader": "^4.4.0",
"imports-loader": "0.8.0",
"jest-cli": "23.1.0",
"jest-styled-components": "5.0.1",
"lint-staged": "7.2.0",
"ngrok": "3.0.1",
"node-plop": "0.15.0",
"null-loader": "0.1.1",
"offline-plugin": "5.0.5",
"plop": "2.0.0",
"pre-commit": "1.2.2",
"prettier": "1.13.5",
"react-test-renderer": "16.4.1",
"rimraf": "2.6.2",
"shelljs": "0.8.2",
"style-loader": "0.21.0",
"stylelint": "9.3.0",
"stylelint-config-recommended": "2.1.0",
"stylelint-config-styled-components": "0.1.1",
"stylelint-processor-styled-components": "1.3.1",
"svg-url-loader": "2.3.2",
"url-loader": "1.0.1",
"webpack": "4.12.0",
"webpack-cli": "3.0.8",
"webpack-dev-middleware": "3.1.3",
"webpack-hot-middleware": "2.22.2",
"webpack-pwa-manifest": "3.6.2"
}
The problem is that the bcrypt library is not installed.
Instead of bcrypt you can install and use bcryptjs which is the same library implemented in plain JavaScript instead of C++.
i had this error........
sh: 1: node-pre-gyp: not found
when deploying my app to heroku.
To solve it, i added "node-pre-gyp": "^0.16.0", as the first dependency in package.json so that heroku installs it before any other library that will need it.
Any version of node-pre-gyp will work just fine.

npm dependency issue when installing... well, pretty much anything

Suddenly, this is happening:
$ npm install history
npm ERR! Linux 3.13.0-76-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "history"
npm ERR! node v4.4.0
npm ERR! npm v2.14.20
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package history#1.13.1 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer react-router#1.0.3 wants history#^1.17.0
...when I try to install, well, pretty much anything. I've tried to install react-bootstrap, got this error, and tried to upgrade history. I'm not sure what to do here.
I've tried npm i -S history#1.17.0 to no avail. Same error.
Here's my package.json:
"dependencies": {
"bootstrap-loader": "1.0.9",
"bootstrap-sass": "3.3.6",
"connect-history-api-fallback": "1.1.0",
"css-loader": "0.23.1",
"font-awesome": "4.5.0",
"font-awesome-webpack": "0.0.4",
"node-sass": "3.4.2",
"object-assign": "4.0.1",
"react": "0.14.7",
"react-dom": "0.14.7",
"react-redux": "4.4.0",
"react-router": "2.0.0",
"redux": "3.3.1",
"redux-api-middleware": "1.0.1",
"redux-thunk": "2.0.1",
"resolve-url-loader": "1.4.3",
"sass-loader": "3.2.0",
"style-loader": "0.13.0",
"url-loader": "0.5.7"
},
"devDependencies": {
"babel-cli": "6.5.1",
"babel-core": "6.5.1",
"babel-eslint": "5.0.0",
"babel-loader": "6.2.3",
"babel-plugin-react-display-name": "2.0.0",
"babel-plugin-react-transform": "2.0.0",
"babel-preset-es2015": "6.5.0",
"babel-preset-react": "6.5.0",
"babel-preset-stage-1": "6.5.0",
"browser-sync": "2.11.1",
"chai": "3.4.1",
"cheerio": "0.19.0",
"colors": "1.1.2",
"cross-env": "1.0.7",
"css-loader": "0.23.1",
"eslint": "2.2.0",
"eslint-loader": "1.3.0",
"eslint-plugin-react": "4.0.0",
"extract-text-webpack-plugin": "1.0.1",
"file-loader": "0.8.5",
"mocha": "2.3.4",
"node-sass": "3.4.2",
"parallelshell": "2.0.0",
"react-transform-catch-errors": "1.0.1",
"react-transform-hmr": "1.0.1",
"redbox-react": "1.2.0",
"rimraf": "2.5.0",
"sass-loader": "3.1.2",
"style-loader": "0.13.0",
"watch": "0.17.1",
"webpack": "1.12.11",
"webpack-dev-middleware": "1.4.0",
"webpack-hot-middleware": "2.6.0",
"yargs": "3.32.0"
},
Any help appreciated.
Looks like some versions had their wires crossed somehow. Ended up removing my node_modules directory rm -r node_modules and reinstalling npm install and that fixed it.

Resources