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.

Install step doesn't work

See original GitHub issue

I just tried to use npm init rust-webpack todomvc and I get this error:

npx: installed 1 in 14.615s
 🦀 Rust + 🕸 WebAssembly + Webpack = ❤️
events.js:167
      throw er; // Unhandled 'error' event
      ^

Error: spawn npm ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
    at onErrorNT (internal/child_process.js:407:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)
    at onErrorNT (internal/child_process.js:407:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)

If I manually run npm install in the todomvc directory it works fine, though I get these warnings:

> webpack-cli@3.2.0 postinstall todomvc\node_modules\webpack-cli
> opencollective postinstall


     *** Thank you for using webpack-cli! ***

Please consider donating to our open collective
     to help us maintain this package.

  https://opencollective.com/webpack/donate

                    ***

npm WARN create-rust-webpack@0.1.5 license should be a valid SPDX license expression
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 636 packages from 420 contributors and audited 8213 packages in 139.856s
found 1 high severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details

Metadata

OS: Windows 10 64-bit wasm-pack: 0.5.1 Node: v10.15.0 npm: 6.4.1

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Pauancommented, Jan 11, 2019

I found the issue: you have to specify shell: true on Windows in order for it to find npm on the PATH. I created a PR which fixes it: https://github.com/rustwasm/rust-webpack-template/pull/98

0reactions
Pauancommented, Jan 11, 2019

Actually, why does it use the synchronous fs stuff but the async child_process stuff? I’ll send a PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to Install Apps or Software on Windows? Here's What ...
To do this, head to Settings > Apps > Apps & features. At the top, you'll see a Choose where to get apps...
Read more >
Error: The 'brew link' step did not complete successfully
I run Mac OS X Mavericks. I tried to install node 0.10.25 and the top answer did not work for me. natevw says...
Read more >
How to troubleshoot Windows Installer errors - Microsoft Support
Describes how to troubleshoot problems that occur when you install, uninstall, or upgrade a program on a Windows-based computer by using Windows Installer....
Read more >
AMP Research Steps Stuck after Changing Truck Batteries ...
I switched out the dead batteries in my 2018 Ram 2500 which resulted in the AMP Research steps being stuck partially open. They...
Read more >
Fix problems downloading apps from the Play Store
Try the steps below if: Your downloads and app updates get stuck and won't finish. You can't download or install apps or games...
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