Stenciljs error while project initialization

427 Views Asked by At

I am trying to create a new stenciljs project using the provided command npm init stencil

After running the above command, i get this error enter image description here

Can someone please help me to find out what exactly is going wrong.

One observation is that after running the command, a new folder named Rohan is created under users directory. Here is my users's directory: enter image description here

1

There are 1 best solutions below

1
On

I was able to figure put the solution. Thanks to Thomas for giving me a hint in the comment :)

The issue was related to the npm-cache path. Since i have space in the username, the cache path was not taken properly. I fixed the path by running this command(set the path for the respective folder only):

npm config set cache "C:\Users\Rohan~1\AppData\Roaming"

After this, the command npm init stencil will ran properly and was able to create the project.