Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gulp test for new project throwing error #2628

Closed
@nstuyvesant

Description

@nstuyvesant
  • I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.
Item Version
generator-angular-fullstack 4.2.2
Node 8.4.0
npm 5.3.0
Operating System OS X 10
Item Answer
Transpiler Babel
Markup Pug
CSS SCSS
Router ngRoute
Client Tests Mocha
DB SQL
Auth Y

Got this error after scaffolding a project and running gulp test:

events.js:182
      throw er; // Unhandled 'error' event
      ^
TypeError: The "digest" argument is required and must not be undefined
  at pbkdf2 (crypto.js:635:11)
  at Object.exports.pbkdf2 (crypto.js:623:10)
  at Instance.encryptPassword (/Users/nates/dev/test/server/api/user/user.model.js:187:33)
  at /Users/nates/dev/test/server/api/user/user.model.js:219:18
  at RandomBytes.ondone (/Users/nates/dev/test/server/api/user/user.model.js:160:18)

Seems like the function calls on line 183 of user.model(sequelizeModels).js and line 187 need to specify the digest for newer versions of node.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions