Botframework-solutions: 'yo botbuilder-assistant:skill' error "Cannot find module 'express-jwt'"

Created on 22 May 2019  路  1Comment  路  Source: microsoft/botframework-solutions

Project

Name: Skills

Language: TypeScript

Description

Running 'yo botbuilder-assistant:skill' results in an exception on tsc --p tsconfig.json && npm run coy-templates

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: tsc --p tsconfig.json && npm run copy-templates
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build 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! C:\Users\v-eridah\AppData\Roaming\npm-cache_logs\2019-05-22T18_44_17_049Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] postinstall: npm run build && node ./deployment/webConfigPrep.js
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] postinstall 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! C:\Users\v-eridah\AppData\Roaming\npm-cache_logs\2019-05-22T18_44_17_111Z-debug.log

To Reproduce

Install prereqs and run yo botbuilder-assistant:skill

Expected behavior

No errors when using the skills generator.

Screenshots

image

Additional context

npm install @types/express-jwt fixes the issue, and tsc --p tsconfig.json && npm run coy-templates runs successfully afterwards.

Windows 10
Node 10.14.1
npm 6.4.1

Bug

Most helpful comment

Looks like this is due to an upgrade of the 'jwks-rsa' package from '1.5.0' to '1.5.1' yesterday. This is a dependency of '[email protected]'. In '1.5.1', '@types/express-jwt' is no longer listed as a dependency, causing this error.

>All comments

Looks like this is due to an upgrade of the 'jwks-rsa' package from '1.5.0' to '1.5.1' yesterday. This is a dependency of '[email protected]'. In '1.5.1', '@types/express-jwt' is no longer listed as a dependency, causing this error.

Was this page helpful?
0 / 5 - 0 ratings