Has anyone come across this error when trying to d...
# suitecommerce
c
Has anyone come across this error when trying to do a clean
npm install
of SiteBuilder Kilimanjaro:
Copy code
npm ERR! ENOENT: no such file or directory, open 'C:\NetSuite\SiteBuilder Kilimanjaro\20240830\node_modules\.staging\@types\babylon-79fca147\package.json'
I have node 6.11.3 installed.
m
Last time I worked on a Kilimanjaro I used the version 6.11.5. Remove the folder ./node_modules and try again
c
Hi @Martin, I had tried 6.11.5 before, but was told by NetSuite to use 6.11.3. I deleted the node_modules folder and reran npm install, but I'm getting the same error still.
s
Are you running the command from the right directory?
c
Hi Steve, yes I am. It runs through the installation downloading all the gits, it's only right at the end as it starts to create the node_modules folder and files that I get this error.
e
You might need to investigate if one of the modules installed from the package.json is deprecated, most of the time you see an error containing the
.staging
folder means that some dependencies were not sucesfully installed
c
Thanks Eminero, if I recall correctly one dep threw an error for not being available, possibly jasmine, I’ll have a look first thing tomorrow.
1
@eminero I ran it again and this is the error I saw yesterday:
Copy code
npm ERR! git clone --template=C:\Users\NetSuite\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror <https://github.com/dflynn15/minijasminenode.git> C:\Users\NetSuite\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-dflynn15-minijasminenode-git-982a621b: undefined
npm ERR! git clone --template=C:\Users\NetSuite\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror <https://github.com/dflynn15/minijasminenode.git> C:\Users\NetSuite\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-dflynn15-minijasminenode-git-982a621b: undefined
I also get this in the log file right at the end:
Copy code
169327 warn optional SKIPPING OPTIONAL DEPENDENCY: minijasminenode2@git+<https://github.com/dflynn15/minijasminenode.git> (node_modules\gulp-jasmine-phantom\node_modules\minijasminenode2):
169328 warn optional SKIPPING OPTIONAL DEPENDENCY: not found: git
169329 verbose optional SKIPPING OPTIONAL DEPENDENCY:
169329 verbose optional Failed using git.
I've managed to git rid of the jasmine error, I was on a clean install machine and git was not installed. Cleared the npm cache and tried again, but still get the final error about babylon and the staging folder.
e
I just realized this is a mix of SiteBuilder with checkout Kilimanjaro, you will need to try a lot of things to make it work. Try using a difference node.js version, not too high for the entire package.json or then just for the package that is missing. I would look into the GitHub repo for the Babylon, just to see if at a specific version they changed something, etc. We always struggle with these old versions
c
@eminero thanks, I upgraded to node 10, along with installing git and python, which seems to have fixed the issue.
1