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.

ENOENT: no such file or directory upon project initialisation

See original GitHub issue

Describe the bug Hi, I was following this tutorial: https://www.sitepoint.com/build-vue-chrome-extension/

This section assumes that you have Node and npm installed on your computer. If this isn’t the case, you can either head to the project’s home page and grab the relevant binaries for your system, or you can use a version manager. I would recommend using a version manager.

I have node v12.14.1 and npm v6.13.4 installed. I’m on a windows 10 machine.

The next steps are to run the following commands to install everything that is needed: npm install -g @vue/cli npm install -g @vue/cli-init

Great! That’s done, now I need to initialize my project.

vue init kocal/vue-web-extension new-tab-page

That returns this error:

image

I tried rebooting, same result. I tried moving all contents from your template folder into another folder called “template” so it would find it but when running that command again it just put everything back to normal and guess what? Gave the error…

How would I resolve this issue? Thanks in advance for your reply.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Kocalcommented, Apr 18, 2021

Hi!

I think you problem comes from npm install -g @vue/cli-init which is only needed for pulling old template for Vue-CLI 2.x (see https://cli.vuejs.org/guide/creating-a-project.html#pulling-2-x-templates-legacy).

This project is for Vue-CLI 3+, so you don’t need to intall @vue/cli-init.

I think you can make things working by running

$ npm uninstall -g @vue/cli @vue/cli-init
$ npm install -g @vue/cli
$ vue create --preset kocal/vue-web-extension my-extension
0reactions
JonasTheGamercommented, May 21, 2021

image

Managed to run it, already getting errors without modifying any files… I’m closing this issue, feel free to re-open if you’d like to continue but I think I just gave up…

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - ENOENT, no such file or directory - Stack Overflow
First try npm install ,if the issue is not yet fixed try the following one after the other. npm cache clean ,then; npm...
Read more >
Still getting ENOENT error `initialize': No such file or directory ...
I created a bunch of files using a Rails generator (5.2.2) but since 'rails g' can't utilize all the options a migration file...
Read more >
Errno::ENOENT: No such file or directory while updating ...
Based on the policy for inactive bugs, this issue is now being closed. If you think this bug still exists, and is reproducible...
Read more >
Neo4J Destop upgrade to v1.2.9 Initialization error
... Error: ENOENT: no such file or directory, scandir 'F:\1_RDSE\Neo4j\projects\project-8d6c147f-0ee5-4246-ba25-3f7bca92e849'. I now have no ...
Read more >
How to Fix npm ERR Code ENOENT npm ERR syscall Open ...
... npm ERR syscall Open Error or ENOENT No Such File or Directory Open 1. ... Open Your Project Folder My Project Folder...
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