02-13-2024 11:15
02-13-2024 11:15
I keep getting this error, and I'm stuck trying to work through it. It seems to be getting hung up on the path where my name is two words. Any direction?
C:\Windows\System32>npx create-fitbit-app my-first-clock
npm ERR! code ENOLOCAL
npm ERR! Could not install from "Tager\AppData\Roaming\npm-cache\_npx\15848" as it does not contain a package.json file.
C:\Windows\System32>
Best Answer02-13-2024 11:38
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
02-13-2024 11:38
Before using that npx, cd to the folder in which you want your app to be created.
Best Answer02-13-2024 13:40
02-13-2024 13:40
I tried it from the user folder too. Should I create a new project folder in the user folder and then try it from there? It creates a folder in my users with just my first name itself and the throws the same error.
Best Answer02-13-2024 13:48
02-13-2024 13:48
Created a folder inside my users folder called fitbitProject. Ran the line from there and got the same error. The line where it says could not install from is what’s getting me. It’s missing the path from my last name forward.
Best Answer02-13-2024 13:52
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
02-13-2024 13:52
I didn't read your first post closely enough. Maybe something in node doesn't like path components with spaces in them. For a giggle, create a folder without spaces, and not in a protected area, and try again. c:\users\dtager might work.
There's a tiny chance that it's a node version issue. Node 14 or 16 usually work.
Best Answer