node-red / node-red-node-swagger

A set of tools for generating Swagger api documentation based on the HTTP nodes deployed in a flow
Apache License 2.0
62 stars 48 forks source link

Swagger not working in latest version #41

Closed vatsalparekh closed 2 years ago

vatsalparekh commented 8 years ago

Just after i updated node-red to updated version, it is giving this error on my multiple instances. screenshot from 2016-06-25 15-40-39

knolleary commented 8 years ago

Are you using npm3? If so, you need to also update the swagger node to its latest version.

MattiasMM commented 8 years ago

I use npm 2.15.8 I did a vanilla installation of nodejs 4 and node-red 0.14 and I get the same error as reported above.

I get this command prompt message:

Welcome to Node-RED

5 Jul 10:29:32 - [info] Node-RED version: v0.14.3 5 Jul 10:29:32 - [info] Node.js version: v4.4.7 5 Jul 10:29:32 - [info] Windows_NT 6.1.7601 x64 LE 5 Jul 10:29:32 - [info] Loading palette nodes 5 Jul 10:29:33 - [warn] ------------------------------------------------------ 5 Jul 10:29:33 - [warn] [rpi-gpio] Info : Ignoring Raspberry Pi specific node 5 Jul 10:29:33 - [warn] [tail] Not currently supported on Windows. 5 Jul 10:29:33 - [warn] ------------------------------------------------------ 5 Jul 10:29:33 - [info] Settings file : D:\sources\node_modules\node-red\settings.js 5 Jul 10:29:33 - [info] User directory : .node-red/ 5 Jul 10:29:33 - [info] Flows file : .node-red\flows.json 5 Jul 10:29:33 - [info] Creating new flow file 5 Jul 10:29:33 - [info] Starting flows 5 Jul 10:29:33 - [info] Started flows 5 Jul 10:29:33 - [info] Server now running at http://127.0.0.1:1880/ Error: ENOENT: no such file or directory, stat 'D:\sources\node_modules\node-red\node_modules\node-red-node-swagger\node_modules\swagger-ui\dist\swagger-ui.js\css\typography.css' at Error (native) Error: ENOENT: no such file or directory, stat 'D:\sources\node_modules\node-red\node_modules\node-red-node-swagger\node_modules\swagger-ui\dist\swagger-ui.js\css\reset.css' at Error (native) Error: ENOENT: no such file or directory, stat 'D:\sources\node_modules\node-red\node_modules\node-red-node-swagger\node_modules\swagger-ui\dist\swagger-ui.js\css\screen.css' at Error (native) Error: ENOENT: no such file or directory, stat 'D:\sources\node_modules\node-red\node_modules\node-red-node-swagger\node_modules\swagger-ui\dist\swagger-ui.js\lib\jquery-1.8.0.min.js' at Error (native) Error: ENOENT: no such file or directory, stat 'D:\sources\node_modules\node-red\node_modules\node-red-node-swagger\node_modules\swagger-ui\dist\swagger-ui.js\lib\jquery.slideto.min.js' at Error (native) Error: ENOENT: no such file or directory, stat 'D:\sources\node_modules\node-red\node_modules\node-red-node-swagger\node_modules\swagger-ui\dist\swagger-ui.js\lib\jquery.wiggle.min.js' at Error (native) Error: ENOENT: no such file or directory, stat 'D:\sources\node_modules\node-red\node_modules\node-red-node-swagger\node_modules\swagger-ui\dist\swagger-ui.js\lib\jquery.ba-bbq.min.js' at Error (native) Error: ENOENT: no such file or directory, stat 'D:\sources\node_modules\node-red\node_modules\node-red-node-swagger\node_modules\swagger-ui\dist\swagger-ui.js\lib\handlebars-2.0.0.js' at Error (native) Error: ENOENT: no such file or directory, stat 'D:\sources\node_modules\node-red\node_modules\node-red-node-swagger\node_modules\swagger-ui\dist\swagger-ui.js\lib\underscore-min.js' at Error (native) Error: ENOENT: no such file or directory, stat 'D:\sources\node_modules\node-red\node_modules\node-red-node-swagger\node_modules\swagger-ui\dist\swagger-ui.js\lib\backbone-min.js' at Error (native) Error: ENOENT: no such file or directory, stat 'D:\sources\node_modules\node-red\node_modules\node-red-node-swagger\node_modules\swagger-ui\dist\swagger-ui.js\swagger-ui.js' at Error (native) Error: ENOENT: no such file or directory, stat 'D:\sources\node_modules\node-red\node_modules\node-red-node-swagger\node_modules\swagger-ui\dist\swagger-ui.js\lib\highlight.7.3.pack.js' at Error (native) Error: ENOENT: no such file or directory, stat 'D:\sources\node_modules\node-red\node_modules\node-red-node-swagger\node_modules\swagger-ui\dist\swagger-ui.js\lib\marked.js' at Error (native) Error: ENOENT: no such file or directory, stat 'D:\sources\node_modules\node-red\node_modules\node-red-node-swagger\node_modules\i18next-client\i18next.js\i18next.min.js' at Error (native) 5 Jul 10:31:02 - [info] Stopping flows

knolleary commented 8 years ago

@MattiasMM you've hit a separate issue that I've just pushed 0.1.7 to fix.

dceejay commented 2 years ago

Node.js version: v4.4.7 ??? really?