three.ez icon indicating copy to clipboard operation
three.ez copied to clipboard

PowerShell issue: The splatting operator '@' cannot be used to reference variables in an expression

Open takiyao opened this issue 6 months ago • 0 comments

When I try to npm install, I get:

"The splatting operator '@' cannot be used to reference variables in an expression. '@three' can be used only as an argument to a command. To reference variables in an expression use '$three'. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : SplattingNotPermitted"

Solution: You can escape the @ symbol in PowerShell by using a backtick before it:

npm install `@three.ez/instanced-mesh

takiyao avatar Aug 18 '24 22:08 takiyao