Uh oh!
There was an error while loading. Please reload this page.
This repository was archived by the owner on Dec 8, 2025. It is now read-only.
Unable to create project #671
Answered
byIvanMtze
Gerardo Espinosa (IvanMtze)
asked this question in
Q&A
Hello, Any ideas on how to solve this? |
Answered by
IvanMtze
Dec 14, 2023
Replies: 3 comments 6 replies
It seems that some part of the directory structure was not created before writing the file Did you install the extension from the marketplace or built locally? The extension sends a message a cli to execute the "init" command. |
1 reply
Could you try to pick an existing empty folder?
What OS are running on? …________________________________
From: Gerardo Espinosa ***@***.***>
Sent: Tuesday, December 12, 2023 10:45:14 PM
To: microsoft/devicescript ***@***.***>
Cc: Peli de Halleux ***@***.***>; Comment ***@***.***>
Subject: Re: [microsoft/devicescript] Unable to create project (Discussion #671)
Installed from the marketplace. I click on create a new project and then it asks for the project directory and name. Then it sends the init message to the console which ends in the following
npx --yes @***@***.*** init --quiet
Configuring DeviceScript project...
node:fs:2352
return binding.writeFileUtf8(
^
Error: ENOENT: no such file or directory, open '{..})/project/.yarnrc.yml'
at writeFileSync (node:fs:2352:20)
at /{..})
at Array.forEach (<anonymous>)
at writeFiles ({..}))
at init ({..}))
at Command3.<anonymous> ({..})
at Command3.listener [as _actionHandler] ({..})
at {..})
at Command3._chainOrCall (/{..})
at Command3._parseCommand ({..}))
at {..})
at Command3._chainOrCall ({..}))
at Command3._dispatchSubcommand ({..}))
at Command3._parseCommand ({..})
at Command3.parse ({..}))
at Object.mainCli ({..}) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/{..})/project/.yarnrc.yml'
}
Node.js v21.3.0
—
Reply to this email directly, view it on GitHub<#671 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AA73QKKPXR4USVHX7VKP5W3YJFFHVAVCNFSM6AAAAABASRKPSGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TQMZYGYYTE>.
You are receiving this because you commented.Message ID: ***@***.***> |
5 replies
[surprised] Peli de Halleux reacted to your message: …________________________________
From: Gerardo Espinosa ***@***.***>
Sent: Thursday, December 14, 2023 9:05:12 PM
To: microsoft/devicescript ***@***.***>
Cc: Peli de Halleux ***@***.***>; Comment ***@***.***>
Subject: Re: [microsoft/devicescript] Unable to create project (Discussion #671)
I downgraded my Node.js version from 21.* to 20.10.* and is working now. Not sure why it was happening but I'm able to make it work now.
—
Reply to this email directly, view it on GitHub<#671 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AA73QKI2C5SN4UFZLHEQXO3YJNSYRAVCNFSM6AAAAABASRKPSGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TQNJXHAZTI>.
You are receiving this because you commented.Message ID: ***@***.***> |
0 replies
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment

I downgraded my Node.js version from 21.* to 20.10.* and is working now. Not sure why it was happening but I'm able to make it work now.