2021年3月9日星期二

"code EMISSINGARG" error when running rpm install

I am trying to run nom install on a Node project in Mac (macOS Big Sur 11.2). I get the following error. I installed node using rpm like this:

$ brew install nvm  $ nvm install 6.4.0  $ nvm alias default 6.4.0  

I have retried this step after completely removing all node/node_module files too. Still the error happens.

npm install  npm ERR! Darwin 20.3.0  npm ERR! argv "/Users/shankar/.nvm/versions/node/v6.4.0/bin/node" "/Users/shankar/.nvm/versions/node/v6.4.0/bin/npm" "install"  npm ERR! node v6.4.0  npm ERR! npm  v3.10.3  npm ERR! code EMISSINGARG    npm ERR! typeerror Error: Missing required argument #1  npm ERR! typeerror     at andLogAndFinish (/Users/shankar/.nvm/versions/node/v6.4.0/lib/node_modules/npm/lib/fetch-package-metadata.js:31:3)  npm ERR! typeerror     at fetchPackageMetadata (/Users/shankar/.nvm/versions/node/v6.4.0/lib/node_modules/npm/lib/fetch-package-metadata.js:51:22)  npm ERR! typeerror     at resolveWithNewModule (/Users/shankar/.nvm/versions/node/v6.4.0/lib/node_modules/npm/lib/install/deps.js:515:12)  npm ERR! typeerror     at /Users/shankar/.nvm/versions/node/v6.4.0/lib/node_modules/npm/lib/install/deps.js:516:7  npm ERR! typeerror     at /Users/shankar/.nvm/versions/node/v6.4.0/lib/node_modules/npm/node_modules/iferr/index.js:13:50  npm ERR! typeerror     at /Users/shankar/.nvm/versions/node/v6.4.0/lib/node_modules/npm/lib/fetch-package-metadata.js:37:12  npm ERR! typeerror     at addRequestedAndFinish (/Users/shankar/.nvm/versions/node/v6.4.0/lib/node_modules/npm/lib/fetch-package-metadata.js:67:5)  npm ERR! typeerror     at returnAndAddMetadata (/Users/shankar/.nvm/versions/node/v6.4.0/lib/node_modules/npm/lib/fetch-package-metadata.js:121:7)  npm ERR! typeerror     at pickVersionFromRegistryDocument (/Users/shankar/.nvm/versions/node/v6.4.0/lib/node_modules/npm/lib/fetch-package-metadata.js:138:20)  npm ERR! typeerror     at /Users/shankar/.nvm/versions/node/v6.4.0/lib/node_modules/npm/node_modules/iferr/index.js:13:50  npm ERR! typeerror This is an error with npm itself. Please report this error at:  npm ERR! typeerror     <http://github.com/npm/npm/issues>  

What could be the cause of this?

https://stackoverflow.com/questions/66557777/code-emissingarg-error-when-running-rpm-install March 10, 2021 at 11:06AM

没有评论:

发表评论