Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uiflowsコードフェンスを使うとエラーになる #9

Open
geckotang opened this issue Nov 28, 2019 · 0 comments
Open

uiflowsコードフェンスを使うとエラーになる #9

geckotang opened this issue Nov 28, 2019 · 0 comments

Comments

@geckotang
Copy link
Member

geckotang commented Nov 28, 2019

READMEに記載されているサンプルで edit-server したところエラーが表示されました。

エラー文次のとおりです。


> [email protected] start /Users/geckotang/Work/PROJECT_NAME
> npm run edit-server


> [email protected] edit-server /Users/geckotang/Work/PROJECT_NAME
> screen-spec-md edit-server -m ./markdown -d ./_spec

>>> publishing pages...
[1/1] /Users/geckotang/Work/PROJECT_NAME/_spec/index.html
>>> publishing tree...
>>> pages published!
<<< tree published!
All done :D
/Users/geckotang/Work/PROJECT_NAME/node_modules/viz.js/full.render.js:7
var Module=typeof Module!=="undefined"?Module:{};var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}Module["arguments"]=[];Module["thisProgram"]="./this.program";Module["quit"]=(function(status,toThrow){throw toThrow});Module["preRun"]=[];Module["postRun"]=[];var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;if(Module["ENVIRONMENT"]){if(Module["ENVIRONMENT"]==="WEB"){ENVIRONMENT_IS_WEB=true}else if(Module["ENVIRONMENT"]==="WORKER"){ENVIRONMENT_IS_WORKER=true}else if(Module["ENVIRONMENT"]==="NODE"){ENVIRONMENT_IS_NODE=true}else if(Module["ENVIRONMENT"]==="SHELL"){ENVIRONMENT_IS_SHELL=true}else{throw new Error("Module['ENVIRONMENT'] value is not valid. must be one of: WEB|WORKER|NODE|SHELL.")}}else{ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS

Error: listen EADDRINUSE: address already in use :::3001
    at Server.setupListenHandle [as _listen2] (net.js:1300:14)
    at listenInCluster (net.js:1348:12)
    at Server.listen (net.js:1436:7)
    at Function.listen (/Users/geckotang/Work/PROJECT_NAME/node_modules/express/lib/application.js:618:24)
    at start (/Users/geckotang/Work/PROJECT_NAME/node_modules/screen-spec-md/server/edit-server.js:23:22)
    at startEditServer (/Users/geckotang/Work/PROJECT_NAME/node_modules/screen-spec-md/server/edit-server.js:50:3)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async Object.exports.handler (/Users/geckotang/Work/PROJECT_NAME/node_modules/screen-spec-md/bin/commands/edit-server.js:19:3)
Emitted 'error' event on Server instance at:
    at emitErrorNT (net.js:1327:8)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  code: 'EADDRINUSE',
  errno: 'EADDRINUSE',
  syscall: 'listen',
  address: '::',
  port: 3001
}
npm ERR! code ELIFECYCLE
npm ERR! errno 7
npm ERR! [email protected] edit-server: `screen-spec-md edit-server -m ./markdown -d ./_spec`
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the [email protected] edit-server 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/geckotang/.npm/_logs/2019-11-28T02_30_19_229Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 7
npm ERR! [email protected] start: `npm run edit-server`
npm ERR! Exit status 7
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/geckotang/.npm/_logs/2019-11-28T02_30_19_250Z-debug.log

uispecを動かす際に、ポートの3001番は使用していませんでした。

おそらくviz.jsのエラーが原因だろうと思い、mdファイルからuiflowsの部分の記述を削除したところ、サーバーが立ち上がりました。

ディレクトリの状況

drwxr-xr-x geckotang staff   192 B  Thu Nov 28 11:32:23 2019   _spec
drwxr-xr-x geckotang staff    96 B  Thu Nov 28 11:29:39 2019   markdown
drwxr-xr-x geckotang staff  23.9 KB Thu Nov 28 11:23:28 2019   node_modules
.rw-r--r-- geckotang staff 503.6 KB Thu Nov 28 11:23:29 2019   package-lock.json
.rw-r--r-- geckotang staff   706 B  Thu Nov 28 11:29:28 2019   package.json
.rw-r--r-- geckotang staff   957 B  Thu Nov 28 11:17:18 2019   README.md
drwxr-xr-x geckotang staff    96 B  Thu Nov 28 11:28:51 2019   spec

Nodeのバージョン

[geckotang]$ node -v
v12.13.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant