Akryum / packt-vue-project-guide

Vue Project Guide Book Sources
https://www.packtpub.com/web-development/vuejs-2-web-development-projects
42 stars 37 forks source link

chapter5(full) server problem #7

Open azcvcza opened 5 years ago

azcvcza commented 5 years ago

when in /server folder run 'npm install' make occur 'bcrypt' unfound problem, I try to modify 'bcrypt' => 'bcryptjs' in package.json, and modify user.js(/server/src/connectors/user.js) 'import "bcrypt" from 'bcrypt'' => 'import "bcrypt" from 'bcryptjs'' finally 'npm start' success; node version v10.13.0 npm version 6.4.1 platform win10 x64

chiubaca commented 5 years ago

this resolved it for me

ehidetake commented 4 years ago
  1. Delete bcrypt from package.json
  2. npm install (installs all the non bcrypt packages)
  3. npm install bcryptjs (install bcryptjs inplace of bcrypt)
  4. Open users.js and change first line to import bcrypt from 'bcryptjs'
  5. npm start

Test by going to your browser and type in localhost:3000/questions