Unable to install yarn - yarnpkg

I installed node v16.15.1, npm v8.12.2 enter image description here
$ npm install -g yarn
npm WARN config global --global, --local are deprecated. Use --location=global instead.
npm ERR! code E404
npm ERR! 404 Not Found - GET https://skimdb.npmjs.com/registry/yarn/-/yarn-1.22.19.tgz - not_found
npm ERR! 404
npm ERR! 404 'yarn#https://skimdb.npmjs.com/registry/yarn/-/yarn-1.22.19.tgz' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Admin\AppData\Local\npm-cache_logs\2022-06-25T07_47_50_510Z-debug-0.log

Related

Not able to globally install electron on MacOS due to error

I'm getting an error while trying to globally install electron, I'm not sure why.
npm ERR! code 1
npm ERR! path /usr/local/lib/node_modules/electron
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! HTTPError: Response code 404 (Not Found) for https://github.com/electron/electron/releases/download/v19.0.9/electron-v19.0.9-darwin-ia32.zip
npm ERR! at EventEmitter.<anonymous> (/usr/local/lib/node_modules/electron/node_modules/got/source/as-stream.js:35:24)
npm ERR! at EventEmitter.emit (node:events:390:28)
npm ERR! at module.exports (/usr/local/lib/node_modules/electron/node_modules/got/source/get-response.js:22:10)
npm ERR! at ClientRequest.handleResponse (/usr/local/lib/node_modules/electron/node_modules/got/source/request-as-event-emitter.js:155:5)
npm ERR! at Object.onceWrapper (node:events:510:26)
npm ERR! at ClientRequest.emit (node:events:402:35)
npm ERR! at ClientRequest.origin.emit (/usr/local/lib/node_modules/electron/node_modules/#szmarczak/http-timer/source/index.js:37:11)
npm ERR! at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:623:27)
npm ERR! at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
npm ERR! at TLSSocket.socketOnData (node:_http_client:487:22)
npm ERR! A complete log of this run can be found in:
For some reason I don't know, your npm tries to install Electron with the ia32 architecture, resulting in a downloadable zip file which is not provided by the Electron maintainers. That's why you're getting a 404 HTTP status code.
Going back in Electron's releases page, I cannot seem to find any darwin-ia32 assets (darwin is the codeame for macOS).
You can try forcing npm to install the appropriate architecture using
npm install --arch=x64 electron
as suggested in Electron's installation guide.

Error shows when I try to install Cypress

I have installed node and npm. Now I am trying to install Cypress. But I get the following error:
npm install cypress --save-dev
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/cypress/-/cypress-3.8.3.tgz
npm ERR! 404
npm ERR! 404 'cypress#^3.3.1' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\AppData\Roaming\npm-cache_logs\2020-07-31T11_02_43_483Z-debug.log
Anybody could you please help me on this?
NPM is currently down. You can follow updates on their status page.
https://status.npmjs.org/#
Finally it worked after OS recovery.

npm node-gyp install issues on Windows 7

So, I don't know what was wrong before, but the solution was to uninstall Node completely and reinstall it. It came with the module already. I haven't figured out how to use it though because typing node-gyp doesn't work.
I am trying to install node-gyp using Node 8.1 (because I have to use this version). When I type
npm install -g node-gyp
I get the error message "SSL Error: SELF_SIGNED_CERT_IN_CHAIN"
I'm using npm 1.1.33, which I thought might be a problem, so I tried to upgrade using npm by following this link.
Dallas Brittany#ZTALEI ~
$ npm config set ca ""
Dallas Brittany#ZTALEI ~
$ npm install npm -g
npm http GET https://registry.npmjs.org/npm
npm http 200 https://registry.npmjs.org/npm
npm http GET https://registry.npmjs.org/npm/-/npm-1.4.15.tgz
npm http 200 https://registry.npmjs.org/npm/-/npm-1.4.15.tgz
C:\Users\Dallas Brittany\AppData\Roaming\npm\npm -> C:\Users\Dallas Brittany\Ap
Data\Roaming\npm\node_modules\npm\bin\npm-cli.js
npm#1.4.15 C:\Users\Dallas Brittany\AppData\Roaming\npm\node_modules\npm
Dallas Brittany#ZTALEI ~
$ npm -v
1.1.33
But, as you can see, it didn't upgrade anything. So I also tried
npm install npm-latest
and got the following:
npm http GET https://registry.npmjs.org/npm-latest
npm http 304 https://registry.npmjs.org/npm-latest
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/vcsurl
npm http 304 https://registry.npmjs.org/lodash
npm ERR! Error: No compatible version found: lodash#'^2.4.1'
npm ERR! Valid install targets:
npm ERR! ["0.1.0","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.3.2","0.4.0","0.4.1
","0.4.2","0.5.0-rc.1","0.5.0","0.5.1","0.5.2","0.6.0","0.6.1","0.7.0","0.8.0","
0.8.1","0.8.2","0.9.0","0.9.1","0.9.2","0.10.0","1.0.0-rc.1","1.0.0-rc.2","1.0.0
-rc.3","1.0.0","1.0.1","1.1.0","1.1.1","1.2.0","1.2.1","1.3.0","1.3.1","2.0.0","
2.1.0","2.2.0","2.2.1","2.3.0","2.4.0","2.4.1"]
npm ERR! at installTargetsError (c:\Program Files (x86)\nodejs\node_modules\
npm\lib\cache.js:586:10)
npm ERR! at c:\Program Files (x86)\nodejs\node_modules\npm\lib\cache.js:464:
15
npm ERR! at saved (c:\Program Files (x86)\nodejs\node_modules\npm\node_modul
es\npm-registry-client\lib\get.js:136:7)
npm ERR! at c:\Program Files (x86)\nodejs\node_modules\npm\node_modules\grac
eful-fs\graceful-fs.js:230:7
npm ERR! at Object.oncomplete (fs.js:297:15)
npm ERR! [Error: No compatible version found: lodash#'^2.4.1'
npm ERR! Valid install targets:
npm ERR! ["0.1.0","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.3.2","0.4.0","0.4.1
","0.4.2","0.5.0-rc.1","0.5.0","0.5.1","0.5.2","0.6.0","0.6.1","0.7.0","0.8.0","
0.8.1","0.8.2","0.9.0","0.9.1","0.9.2","0.10.0","1.0.0-rc.1","1.0.0-rc.2","1.0.0
-rc.3","1.0.0","1.0.1","1.1.0","1.1.1","1.2.0","1.2.1","1.3.0","1.3.1","2.0.0","
2.1.0","2.2.0","2.2.1","2.3.0","2.4.0","2.4.1"]]
npm ERR! You may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "c:\\Program Files (x86)\\nodejs\\node.exe" "c:\\Program Files
(x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "npm-latest"
npm ERR! cwd C:\Users\Dallas Brittany
npm ERR! node -v v0.8.1
npm ERR! npm -v 1.1.33
npm ERR! message No compatible version found: lodash#'^2.4.1'
npm ERR! message Valid install targets:
npm ERR! message ["0.1.0","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.3.2","0.4.0
","0.4.1","0.4.2","0.5.0-rc.1","0.5.0","0.5.1","0.5.2","0.6.0","0.6.1","0.7.0","
0.8.0","0.8.1","0.8.2","0.9.0","0.9.1","0.9.2","0.10.0","1.0.0-rc.1","1.0.0-rc.2
","1.0.0-rc.3","1.0.0","1.0.1","1.1.0","1.1.1","1.2.0","1.2.1","1.3.0","1.3.1","
2.0.0","2.1.0","2.2.0","2.2.1","2.3.0","2.4.0","2.4.1"]
npm http 304 https://registry.npmjs.org/vcsurl
npm http 304 https://registry.npmjs.org/request
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\Dallas Brittany\npm-debug.log
npm ERR! not ok code 0
Any suggestions?
Thanks.

grunt-contrib-build' is not in the npm registry

I'm getting below error when I try to install npm install grunt-contrib-build --save-dev on my Windows 7 system using command prompt.
C:\css-base>npm install grunt-contrib-build --save-dev
npm WARN package.json my-project#0.1.0 No README.md file found!
npm http GET https://registry.npmjs.org/grunt-contrib-build
npm http 404 https://registry.npmjs.org/grunt-contrib-build
npm ERR! 404 'grunt-contrib-build' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "grunt-contrib-build" "--save
-dev"
npm ERR! cwd C:\css-base
npm ERR! node -v v0.10.3
npm ERR! npm -v 1.2.17
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\css-base\npm-debug.log
npm ERR! not ok code 0
If anyone finds this while trying to install this plugin:
grunt-contrib-build
is now called
grunt-usemin
However the tasks in the new plugin might not be supported, please check
https://github.com/yeoman/grunt-usemin/issues/3 for more information.
Have you tried reading the error message?
npm ERR! 404 'grunt-contrib-build' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it

Mac cant install socket.io with npm/nodejs?

I have been searching for hours now and I still have no answer for this problem.
I have mac os x version 10.6.8
I installed nodejs from nodejs.org. Version is v0.6.14.
I did this in terminal to check npm: npm --version. npm version is 1.1.12
after that I tried npm install socket.io and I got this error...
pm http GET https://registry.npmjs.org/socket.io
npm http 304 https://registry.npmjs.org/socket.io
npm http GET https://registry.npmjs.org/socket.io-client/0.9.3
npm http GET https://registry.npmjs.org/policyfile/0.0.4
npm http GET https://registry.npmjs.org/redis/0.6.7
npm http 304 https://registry.npmjs.org/redis/0.6.7
npm http 304 https://registry.npmjs.org/policyfile/0.0.4
npm http 304 https://registry.npmjs.org/socket.io-client/0.9.3
npm http GET https://registry.npmjs.org/uglify-js/1.2.5
npm http GET https://registry.npmjs.org/ws
npm http GET https://registry.npmjs.org/xmlhttprequest/1.2.2
npm http GET https://registry.npmjs.org/active-x-obfuscator/0.0.1
npm http 304 https://registry.npmjs.org/ws
npm http 304 https://registry.npmjs.org/active-x-obfuscator/0.0.1
npm http 304 https://registry.npmjs.org/xmlhttprequest/1.2.2
npm http 304 https://registry.npmjs.org/uglify-js/1.2.5
npm http GET https://registry.npmjs.org/zeparser/0.0.5
> ws#0.4.11 preinstall /Users/NAME/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> make
execvp(): No such file or directory
npm ERR! Error: ENOENT, open '/Users/NAME/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/array1.js'
npm ERR! You may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR!
npm ERR! System Darwin 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "socket.io"
npm ERR! cwd /Users/NAME
npm ERR! node -v v0.6.14
npm ERR! npm -v 1.1.12
npm ERR! path /Users/NAME/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/array1.js
npm ERR! code ENOENT
npm ERR! message ENOENT, open '/Users/NAME/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/array1.js'
npm ERR! errno {}
npm ERR! ws#0.4.11 preinstall: `make`
npm ERR! `sh "-c" "make"` failed with 127
npm ERR!
npm ERR! Failed at the ws#0.4.11 preinstall script.
npm ERR! This is most likely a problem with the ws package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! make
npm ERR! You can get their info via:
npm ERR! npm owner ls ws
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Darwin 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "socket.io"
npm ERR! cwd /Users/NAME
npm ERR! node -v v0.6.14
npm ERR! npm -v 1.1.12
npm ERR! code ELIFECYCLE
npm ERR! message ws#0.4.11 preinstall: `make`
npm ERR! message `sh "-c" "make"` failed with 127
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/NAME/npm-debug.log
npm not ok
PLS help!
Force the installation using
npm install socket.io -f
Looks like the tests needs node-waf, but not the library directly. I hope they fix these issues eventually.
Socket.io runs a make upon install and requires node-waf in order to run. Did you install node via a package manager like ports, or did you use the dmg install on the node website?
This thread speaks to the issue you're having:
https://github.com/LearnBoost/socket.io/issues/773
Seems like if you install an earlier version of socket.io there is no need to run the make script. I tried the following and managed to get it installed successfully on my Mac OSX 10.6.8:
npm install socket.io#0.7
There is further discussion on this google groups post.

Resources