'npm ERR! code EINVALIDTAGNAME in installing a package

i am trying to install a package in my react app but i get this error

$ npm install xlsx
npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name "react-scripts  start": Tags may not have any characters that encodeURIComponent encodes.

this is my scripts in package.json

  "scripts": {
    "start": "react-scripts --openssl-legacy-provider start",
    "build": "react-scripts --openssl-legacy-provider build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },

version of react is 17 and my node version is 17 but app created by a different version of node

i don't know what to do



Solution 1:[1]

it was becuase the version of my npm i downgrade it and problem solved

npm install -g [email protected]

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 saeed