rustwasm / rust-webpack-template

Kickstart your Rust, WebAssembly, and Webpack project!
Apache License 2.0
562 stars 75 forks source link

Trouble building on Windows #171

Closed ghost closed 3 years ago

ghost commented 4 years ago

Summary

I have created a new package using the following command: npm init rust-webpack .

Whenever I tried to build my project the build fails with an error I'm not sure what it means:

λ npm run build

> rust-webpack-template@0.1.0 build C:\Users\Lucas\Projects\online-minesweeper
> rimraf dist pkg && webpack

�  Checking for wasm-pack...

ℹ️  Installing wasm-pack

Error: spawn npm ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19)
    at onErrorNT (internal/child_process.js:468:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rust-webpack-template@0.1.0 build: `rimraf dist pkg && webpack`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the rust-webpack-template@0.1.0 build 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!     C:\Users\Lucas\AppData\Roaming\npm-cache\_logs\2020-08-08T13_34_47_034Z-debug.log

Additional Details

Nothing I can think of.

lukbukkit commented 3 years ago

You have to install wasm-pack to build your Rust application