question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"npm start" fails to create web server (windows 7)

See original GitHub issue

I installed latest version from master (Chrome 98 results, 04/02/2022) (have ran previous versions of benchmark without problem)

I have windows 7 64bit, node v13.6.0 npm 6.13.4.

Have done:

npm ci on root folder

then

npm start to start web server.

But I get following error:

> js-framework-benchmark@1.0.0 start C:\nikos\work\_nikos\open_source\git\js\js-framework-benchmark
> ws -c lws.config.js --static.maxage 1 -d .

Error: No valid exports main found for 'C:\nikos\work\_nikos\open_source\git\js\js-framework-benchmark\node_modules\koa'
    at resolveExportsTarget (internal/modules/cjs/loader.js:625:9)
    at applyExports (internal/modules/cjs/loader.js:502:14)
    at resolveExports (internal/modules/cjs/loader.js:551:12)
    at Function.Module._findPath (internal/modules/cjs/loader.js:657:22)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:960:27)
    at Function.Module._load (internal/modules/cjs/loader.js:855:27)
    at Module.require (internal/modules/cjs/loader.js:1033:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Lws._getRequestHandler (C:\nikos\work\_nikos\open_source\git\js\js-framework-benchmark\node_modules\lws\index.js:170:17)
    at Lws.useMiddlewareStack (C:\nikos\work\_nikos\open_source\git\js\js-framework-benchmark\node_modules\lws\index.js:159:36)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! js-framework-benchmark@1.0.0 start: `ws -c lws.config.js --static.maxage 1 -d .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the js-framework-benchmark@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
foo123commented, Feb 24, 2022

I solved the angular issue by using NVS node version switcher on my win7 box and switching to a previous node version supported both by angular and win7 (node v.12.20.*)

1reaction
foo123commented, Feb 4, 2022

I made the following alterations after debugging the issue:

  1. Upgraded node to 13.14.0 (seems 13.6 is buggy)
  2. Downgraded lighthouse module to @9.0.0 (newer versions require features of higher node versions). Now web server works correctly and most benchmarks run, except mem benchmarks.
  3. Added manually Chrome binary path to wedriver-ts/src/puppeteerAccess.ts since puppeteer memory benchmarks are failing to launch chrome binary (now they work).
Read more comments on GitHub >

github_iconTop Results From Across the Web

reslove npm start error in windows 7 - Stack Overflow
I found this issue on github. Apparently, this error appears if there is a mistake in your environment variables. Open your PATH variable...
Read more >
npm start failed to start App · Issue #6908 - GitHub
Hello Folks, I am having this issue from yesterday, When I am trying to create new app with create-react-app and trying to start...
Read more >
"The NPM script 'start' exited without indicating that the create ...
"The NPM script 'start' exited without indicating that the create-react-app server was listening for requests" In .Net React Application.
Read more >
Common errors | npm Docs
You are trying to install on a drive that either has no space, or has no permission to write. Free some disk space...
Read more >
How to Set Up a Local HTTP Server (Node.js) - YouTube
Step 1: Install Node.js here https:// nodejs.org/en/Step 2: Install http - server using the following npm command in Node.js Command Prompt npm ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found