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.

cannot init template

See original GitHub issue

I get a strange error trying to init the rust-webpack template:

C:\r>npm init rust-webpack rvr --verbose
npm info it worked if it ends with ok
npm verb cli [ 'C:\\Users\\d\\nodejs\\node.exe',
npm verb cli   'C:\\Users\\d\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli   'init',
npm verb cli   'rust-webpack',
npm verb cli   'rvr',
npm verb cli   '--verbose' ]
npm info using npm@6.5.0
npm info using node@v11.9.0
npm verb config Skipping project config: C:\Users\d/.npmrc. (matches userconfig)
npx: installed 1 in 1.329s
 🦀 Rust + 🕸 WebAssembly + Webpack = ❤️ ping project config: C:\Users\d/.npmrc. (matches userconfig)
events.js:173
      throw er; // Unhandled 'error' event
      ^

Error: spawn npm ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:246:19)
    at onErrorNT (internal/child_process.js:421:16)
    at processTicksAndRejections (internal/process/next_tick.js:76:17)
Emitted 'error' event at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:252:12)
    at onErrorNT (internal/child_process.js:421:16)
    at processTicksAndRejections (internal/process/next_tick.js:76:17)
npm verb exit [ 0, true ]
npm timing npm Completed in 4725ms
npm info ok

C:\r>

Any hints where to start looking? rust and wasm-pack are fresh installations.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:7
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
minagawahcommented, Aug 7, 2019

I upgraded my Git version from 2.7.4 to 2.22.0, and it now works fine. Reason being, create-rust-webpack seems to use --no-tags option when git clone, and older version of Git does not have such option.

2reactions
rajeevriitmcommented, Aug 5, 2019

i am still having this problem. Did anyone find a solution?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to initialize a template variable inside a class, why?
Add missing static . Then, either move variable definitions to namespace scope: class foo { template <class T> struct null_string { static ...
Read more >
WordPerfect Office - Cannot Initialize Templates.
Error Message Cannot Initialize Templates Information This error message will occur while trying to launch WordPerfect® Office on OS versions ofWindows ...
Read more >
sam init - AWS Serverless Application Model
Initializes a serverless application with an AWS SAM template. The template provides a folder structure for your AWS Lambda functions, and is connected...
Read more >
WP 11 "cannot initialize templates..." - Tek-Tips
RE: WP 11 "cannot initialize templates..." · 1. login as administrator and gives administrator privileges to the user(s) that WP gives the error....
Read more >
How to use CDK init to create a CDK App | bobbyhadz
lib - a template for writing a CDK construct library; sample-app - a starter with some constructs included. Note that cdk init cannot...
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