1

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

Rohan Kangale
  • 931
  • 4
  • 11
  • 29

1 Answers1

1

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.

Rohan Kangale
  • 931
  • 4
  • 11
  • 29
  • Glad you were able to fix it, but I'm a bit surprised that npm doesn't correctly quote file paths. – Thomas Sep 04 '20 at 15:46