skill-sample-nodejs-adventure-game icon indicating copy to clipboard operation
skill-sample-nodejs-adventure-game copied to clipboard

Does not run "npm start"

Open kleber-maia opened this issue 8 years ago • 2 comments

[email protected] start /Users/klebermaia/Projects/Alexa/interactive-adventure-game-tool ./node_modules/gulp/bin/gulp.js

/Users/klebermaia/Projects/Alexa/interactive-adventure-game-tool/node_modules/require-dir/index.js:97 if (!require.extensions.hasOwnProperty(ext)) { ^

TypeError: require.extensions.hasOwnProperty is not a function at requireDir (/Users/klebermaia/Projects/Alexa/interactive-adventure-game-tool/node_modules/require-dir/index.js:97:37) at Object. (/Users/klebermaia/Projects/Alexa/interactive-adventure-game-tool/gulpfile.js:1:85) at Module._compile (module.js:569:30) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:503:32) at tryModuleLoad (module.js:466:12) at Function.Module._load (module.js:458:3) at Module.require (module.js:513:17) at require (internal/module.js:11:18) at Liftoff.handleArguments (/Users/klebermaia/Projects/Alexa/interactive-adventure-game-tool/node_modules/gulp/bin/gulp.js:116:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] start: ./node_modules/gulp/bin/gulp.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] start 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! /Users/klebermaia/.npm/_logs/2017-07-23T02_01_35_611Z-debug.log

kleber-maia avatar Jul 23 '17 02:07 kleber-maia

I'm having this same error, trying to follow along with a tutorial that uses this, I have run into this issue.

jordan-mGH avatar Jul 29 '17 03:07 jordan-mGH

in package.json, I updated "require-dir": "^0.2.0" to "require-dir": "^0.3.2",

I redid npm install to make sure it was fine, then npm start and everything ran fine. using node v8.2.1 and npm 5.3.0 not tested with any other versions, hence no PR submitted

Ah yes, and now after doing all my research for a fix I see a PR has been submitted already: https://github.com/alexa/interactive-adventure-game-tool/pull/43

philmcneely avatar Aug 02 '17 01:08 philmcneely