You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
I'm trying to create a rust webpack project. I run the npm init rust-webpack my-app and I get the following error.
npm init rust-webpack rust-nuxt
npx: installed 17 in 2.454s
🦀 Rust + 🕸 WebAssembly + Webpack = ❤️
/home/benjamin/.npm/_npx/6993/lib/node_modules/create-rust-webpack/.bin/create-rust-webpack.js:17
throw new Error("Bad error code when running `" + cmd + " " + args.join(" ") + "`: " + output.status);
^
Error: Bad error code when running `npm install`: 1
at run (/home/benjamin/.npm/_npx/6993/lib/node_modules/create-rust-webpack/.bin/create-rust-webpack.js:17:11)
at /home/benjamin/.npm/_npx/6993/lib/node_modules/create-rust-webpack/.bin/create-rust-webpack.js:46:5
at /home/benjamin/.npm/_npx/6993/lib/node_modules/create-rust-webpack/node_modules/cpr/lib/index.js:294:33
at check (/home/benjamin/.npm/_npx/6993/lib/node_modules/create-rust-webpack/node_modules/cpr/lib/index.js:190:17)
at copy (/home/benjamin/.npm/_npx/6993/lib/node_modules/create-rust-webpack/node_modules/cpr/lib/index.js:198:24)
at processTicksAndRejections (internal/process/task_queues.js:82:9)
(base) benjamin@sotrh-top:~/Desktop$ rm -rf rust-nuxt/
(base) benjamin@sotrh-top:~/Desktop$ npm init rust-webpack rust-nuxt --verbose
npm info it worked if it ends with ok
npm verb cli [
npm verb cli '/home/benjamin/.nvm/versions/node/v12.4.0/bin/node',
npm verb cli '/home/benjamin/.nvm/versions/node/v12.4.0/bin/npm',
npm verb cli 'init',
npm verb cli 'rust-webpack',
npm verb cli 'rust-nuxt',
npm verb cli '--verbose'
npm verb cli ]
npm info using npm@6.14.0
npm info using node@v12.4.0
npx: installed 17 in 2.744sfo using node@v12.4.0
🦀 Rust + 🕸 WebAssembly + Webpack = ❤️ e@v12.4.0
/home/benjamin/.npm/_npx/7091/lib/node_modules/create-rust-webpack/.bin/create-rust-webpack.js:17
throw new Error("Bad error code when running `" + cmd + " " + args.join(" ") + "`: " + output.status);
^
Error: Bad error code when running `npm install`: 1
at run (/home/benjamin/.npm/_npx/7091/lib/node_modules/create-rust-webpack/.bin/create-rust-webpack.js:17:11)
at /home/benjamin/.npm/_npx/7091/lib/node_modules/create-rust-webpack/.bin/create-rust-webpack.js:46:5
at /home/benjamin/.npm/_npx/7091/lib/node_modules/create-rust-webpack/node_modules/cpr/lib/index.js:294:33
at check (/home/benjamin/.npm/_npx/7091/lib/node_modules/create-rust-webpack/node_modules/cpr/lib/index.js:190:17)
at copy (/home/benjamin/.npm/_npx/7091/lib/node_modules/create-rust-webpack/node_modules/cpr/lib/index.js:198:24)
at processTicksAndRejections (internal/process/task_queues.js:82:9)
npm verb exit [ 0, true ]
npm timing npm Completed in 15283ms
npm info ok
The script does create the files for the project, but when I run npm install I get the following.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm ERR! Unexpected end of JSON input while parsing near '...istry.npmjs.org/webpa'
npm ERR! A complete log of this run can be found in:
npm ERR! /home/benjamin/.npm/_logs/2020-10-11T05_26_15_417Z-debug.log
I'm trying to create a rust webpack project. I run the
npm init rust-webpack my-appand I get the following error.The script does create the files for the project, but when I run
npm installI get the following.I've attached the log mentioned.
2020-10-11T05_26_15_417Z-debug.log
Here's some info about my machine.
Let me know if you need any more info.