Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

jsh: permission denied: vite #187

Answered by noam-honig
noam-honig asked this question in Q&A
Discussion options

I was playing around with the configuration and placed the terminal configuration code sample inside a meta.md file with type: chapter.

I started getting this error - jsh: permission denied: vite

I removed what I've added - and restarted the server - but I still get that error.
I deleted node_modules and all browser cache - and still get this error - I can't seem to find how to get back to normal.

Currently my src folder is identical to the default one, other than the templace which I replaced with something I was working on - and runs.

Is there some hidden cache folder that I can delete?

Here's my repo:
https://github.com/noam-honig/play-with-tutorial-kit

You must be logged in to vote

Hi - based on your tip - I downloaded the project to a different directory and it worked.
I decided to compare the directories and found the cause.
In the src/template/default there was a node_modules folder (when I tested that it worked)
With that node_modules the problem is reproduced.

to reproduce
npm create tutorial
cd src/templates/default
npm i
cd ../../../
npm run dev
you'll see the problem

Replies: 2 comments 3 replies

Comment options

Could you write down reproduction steps for this issue? Starting from npm create tutorial, and then showing which meta.md files to replace with what content?

The linked Github repository runs just fine.

You must be logged in to vote
0 replies
Comment options

Hi - based on your tip - I downloaded the project to a different directory and it worked.
I decided to compare the directories and found the cause.
In the src/template/default there was a node_modules folder (when I tested that it worked)
With that node_modules the problem is reproduced.

to reproduce
npm create tutorial
cd src/templates/default
npm i
cd ../../../
npm run dev
you'll see the problem

You must be logged in to vote
3 replies
Comment options

Thanks, I've created an issue for this: #189

Comment options

Perfect - thank you

Comment options

This is now fixed in 0.1.2 versions. Now node_modules of templates are not copied to lesson code. It's safe to have node_module present on file system for testing purposes.

Answer selected by AriPerkkio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /