Skip to content

[BUG] v8.13.0 npm run <script> fails #5066

@JonasSchubert

Description

@JonasSchubert

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

I am unable to run scripts defined in my package.json. npm run <script> outputs The filename, directory name, or volume label syntax is incorrect. (translated from german 'Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch.')
Downgrading to v8.12.2 for now as scripts are able to run using this npm version.

Expected Behavior

All scripts should run without an error.

Steps To Reproduce

  1. Install the latest npm version 8.13.0 globally
  2. Run any script defined in your package.json
  3. See error: The filename, directory name, or volume label syntax is incorrect. (translated from german 'Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch.')

Environment

  • npm: 8.13.0
  • Node.js: 16.15.1
  • OS Name: Windows 10
  • System Model Name: HP ZBook
  • npm config:
; "builtin" config from C:\Users\[retracted]\AppData\Roaming\npm\node_modules\npm\npmrc

prefix = "C:\\Users\\[retracted]\\AppData\\Roaming\\npm"

; "user" config from C:\Users\[retracted]\.npmrc

[retracted]:registry = "[retracted]"
[retracted]:registry = "[retracted]"
[retracted]
registry = "[retracted]"

; node bin location = C:\Program Files\nodejs\node.exe
; node version = v16.15.1
; npm local prefix = [retracted]
; npm version = 8.13.0
; cwd = [retracted]
; HOME = C:\Users\[retracted]
; Run `npm config ls -l` to show all defaults.

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingPriority 1high priority issueRelease 8.xwork is associated with a specific npm 8 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions