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

SyntaxError: Invalid regular expression: /^\/(*)(?:\/(?=$))?$/: Nothing to repeat #14

Open
neelam19051 opened this issue Oct 7, 2022 · 0 comments

Comments

@neelam19051
Copy link

Hi i am trying to run npm for panX visualization purpose and it giving following error.

npm start

[email protected] start /home/neel@m95/Desktop/pan-genome-visualization
node ./bin/www

DEPRECATED use https://github.com/pillarjs/path-to-regexp
/usr/lib/nodejs/path-to-regexp/index.js:167
return attachKeys(new RegExp('^' + path + (end ? '$' : ''), flags), keys);
^

SyntaxError: Invalid regular expression: /^/(*)(?:/(?=$))?$/: Nothing to repeat
at new RegExp ()
at pathtoRegexp (/usr/lib/nodejs/path-to-regexp/index.js:167:21)
at new Layer (/usr/lib/nodejs/express/router/layer.js:21:17)
at Function.proto.route (/usr/lib/nodejs/express/router/index.js:366:15)
at Function.proto.(anonymous function) [as get] (/usr/lib/nodejs/express/router/index.js:381:22)
at Object. (/home/neel@m95/Desktop/pan-genome-visualization/routes/download.js:27:8)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)

npm ERR! Linux 5.4.0-72-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node ./bin/www
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node ./bin/www'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the panX-visualization package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./bin/www
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs panX-visualization
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls panX-visualization
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/neel@m95/Desktop/pan-genome-visualization/npm-debug.log

Thank you!

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