I've been trying to publish my first package and I managed to do that, it can be found here: https://github.com/WingsDevelopment/export-poc3/packages/1370199
It is public package and github gives me this command npm install #wingsdevelopment/export-poc3#0.0.1 for installation, but when I run it,throws error:
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/#wingsdevelopment%2fexport-poc3 - Not found
npm ERR! 404
npm ERR! 404 '#wingsdevelopment/export-poc3#0.0.1' is not in this 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\Korisnik\AppData\Local\npm-cache\_logs\2022-04-18T11_52_02_990Z-debug.log
Btw I was following this steps: https://dev.to/alexeagleson/how-to-create-and-publish-a-react-component-library-2oe
Related
I get below npm error when trying to publish a new version of my package to npm.
The package is 'public' and previously published by someone else.
updated code and merged to master
run npm version major and merged package.json and package-lock.json to master
npm login
npm publish
I get below error:
npm notice Publishing to https://registry.npmjs.org/ npm ERR! code
E404 npm ERR! 404 Not Found - PUT
https://registry.npmjs.org/#my-package - Not found npm ERR! 404 npm
ERR! 404 '#my-package#2.0.0' is not in this registry.
I received a 404 until I provided a repository field in package.json when publishing to Github Packages. Unhelpful error.
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/#capacitor/android/#capacitor%2fcore
npm ERR! 404
npm ERR! 404 '#capacitor/core#*' is not in this 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! /Users/erensengun/.npm/_logs/2022-03-12T09_04_56_624Z-debug-0.log
erensengun#ERENs-MacBook-Pro ~ % ionic -v
6.18.1
erensengun#ERENs-MacBook-Pro ~ % npm init #capacitor/app
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/#capacitor/android/#capacitor%2fcreate-app
npm ERR! 404
npm ERR! 404 '#capacitor/create-app#latest' is not in this 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:
SOLVED:
Follow this checklist when you are facing a npm ERR! 404 and you can’t fix it:
install latest npm version
login (if you are downloading a private package)
try to install the package
try to delete the .npmrc file from your home directory
re-try to install the package
I have a private github package with mutliple versions and I want to add deprecate notice to older versions. I tried with below npm commands does not work
npm deprecate --registry https://npm.pkg.github.com/privateregistry my-package#1.0.10 "This package is deprecated, Please use latest version"
but i get the below error
npm ERR! code E404
npm ERR! 404 Not Found - GET https://npm.pkg.github.com/privateregistry/my-package?write=true - Package [my-package] was not found
npm ERR! 404
npm ERR! 404 'my-package#1.0.10' 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.
I use two Github platform. The public one at https://github.com and my work enterprise one https://github.work.com.
I haven't had any trouble before but I'm trying to run npm install. The project has a package.json file which contains a dependency which is references a repository in my work in git:
"my-dependency-sdk": "git+https://git#github.work.com:organization/my-dependency-sdk.git"
This is the output from the install:
npm ERR! Error while executing:
npm ERR! /usr/local/bin/git ls-remote -h -t https://git#github.work.com/:organization/my-dependency-sdk.git
npm ERR!
npm ERR! fatal: unable to access 'https://git#github.work.com/:organization/my-dependency-sdk.git/': The requested URL returned error: 400
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/me/.npm/_logs/2018-04-10T17_44_59_498Z-debug.log
Is it possible that the Git installation on my Mac holds some configuration that may be pointing to the public Github and the repository I'm looking for isn't there?
The URL was incorrect. It should have been:
git+https://github.work.com/organization/my-dependency-sdk.git
The format I originally used was for ssh.
During today deploy (first from about a week) my application did not start. The changes were cosmetic and included only business logic, not configurations. What can be wrong? How can I fix this?
-----> Building dependencies
Installing node modules (package.json)
npm ERR! unpack Could not read data for bluemix-management-client#1.0.4
npm ERR! argv "/tmp/staged/app/vendor/node/bin/node" "/tmp/staged/app/vendor/node/bin/npm" "install" "--unsafe-perm" "--userconfig" "/tmp/staged/app/.npmrc"
npm ERR! node v5.12.0
npm ERR! npm v3.8.6
npm ERR! code E404
npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/bluemix-management-client
npm ERR! 404 'bluemix-management-client' 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 It was specified as a dependency of 'Atlas2'
npm ERR! 404 Note that you can also install from a
npm ERR! Please include the following file with any support request:
npm ERR! /tmp/staged/app/npm-debug.log
-----> Build failed
Resolved by myself by reapplying build pack via:
cf push -b sdk-for-nodejs_v3_6-20160715-0749
I've taken the build pack name from http://bpversions.mybluemix.net/.
Switch to npm >= 3.10.0 and the problem is resolved.