Search code examples
windowsnpmbigcommercejspm

BigCommerce jspm install error and bitbucket timeout


I have a case open with BigCommerce on this issue and they have instructed me to post here for assistance. Case# 02715192. I am running Windows 10.

I have been successful in setting up Stencil CLI with the base Cornerstone template. All of the dependencies installed successfully and I had my site loaded up on port 3000 and javascript was working and is working still when I load up. My problem is related to using my purchased Showroom theme from the marketplace. Since the Cornerstone still loads and works successfully, I am at a loss for why I cannot get Showroom to function with javascript. They are installed in different sub-directories as instructed.

When I run stencil init, I get an error loading js/app in the assets folder (see screenshot). I imagine this is why javascript is not running on the Showroom template within my local port. I found the troubleshooting guide and it tells me to install a fresh copy of the theme and run npm install && jspm install. Well, npm install is fine, but jspm install times out and I get errors (see additional screenshot). It seems this is the source of my woes, but have been unable to find a fix.

stencil init error:

stencil init error

jspm install error:

jspm install error


Solution

  • This looks like its an issue with JSPM-git [https://github.com/Orbs/jspm-git/issues/52].

    Try changing line 50 of git.js from versionArr = stdout.match(/\d.\d.\d/); to versionArr = stdout.match(/\d+\.\d+\.\d+/);