Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Error when run api-designer #518

Closed
jvargasbdb opened this issue Jun 8, 2018 · 5 comments
Closed

Error when run api-designer #518

jvargasbdb opened this issue Jun 8, 2018 · 5 comments

Comments

@jvargasbdb
Copy link

jvargasbdb commented Jun 8, 2018

Before install api-designer with npm install -g api-designer and run api-designer in console, this genere this error

module.js:540
throw err;
^

Error: Cannot find module 'request'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object. (/Users/jvarg25/.nvm/versions/node/v8.9.4/lib/node_modules/api-designer/bin/api-designer.js:6:15)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)

@Northshoot
Copy link

Northshoot commented Jun 9, 2018

Was getting same error.

You can fix it installing request module

npm install -g request

@yegorjke
Copy link

+1

Why is request is not a dependency?

@shisama
Copy link

shisama commented Jul 25, 2018

Package version is old on npmjs.com. Latest is 0.4.13 on master branch.
Try the below command to install the latest version.

npm install -g mulesoft/api-designer#master

@carowright
Copy link
Contributor

Duplicate of #506

@carowright carowright marked this as a duplicate of #506 Sep 17, 2018
@sapnahargunani
Copy link

None of the above solution is working for me. Keep getting below error:
module.js:340
throw err;
Could anyone please prove proper set of instructions?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants