Install step doesn't work
See original GitHub issueI 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:
- Created 5 years ago
- Comments:6 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I found the issue: you have to specify
shell: true
on Windows in order for it to findnpm
on the PATH. I created a PR which fixes it: https://github.com/rustwasm/rust-webpack-template/pull/98Actually, why does it use the synchronous
fs
stuff but the asyncchild_process
stuff? I’ll send a PR.