I've published react-push-notify by using this command :
npm login
npm publish
But when I want to publish again through Github ( private repository ) by following these steps:
Add publishPackage to my package.json
"publishConfig": { "registry": "https://npm.pkg.github.com/" }
Authenticate
npm login --registry=https://npm.pkg.github.com/
Publish
npm publish
It invokes this error:
npm ERR! code E404
npm ERR! 404 Not Found - PUT https://npm.pkg.github.com/react-push-notify
npm ERR! 404
npm ERR! 404 'react-push-notify#0.2.0' 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.
This is my first package on npm and I'm confusing what's difference between publishing to npm and publishing to npm from Github?
Login & Logout
npm login --scope=#[Organization name] --registry=https://npm.pkg.github.com
npm logout --scope=#My-Organization --registry=https://npm.pkg.github.com
Publish
npm publish
Related
Even after logged in using npm login command successfully i get the below error
npm whoami
npm ERR! code E401
npm ERR! 401 Unauthorized - GET https://registry.npmjs.org/-/whoami
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/bharathkumar/.npm/_logs/2021-09-09T08_42_29_365Z-debug.log
Try removing contents/remove file .npmrc in the project folder or the user's home folder
I am having issues with publishing my npm package to the project gitlab registry.
Here is the gitlab-ci.yaml script
build_npm_package:
stage: build
image: node:15.4
script:
- yarn install
- yarn run pre-publish
- cd dist
- npm config set #NAME:registry https://gitlab.NAME.ca/api/v4/projects/${CI_PROJECT_ID}/packages/npm/
- npm config set //gitlab.NAME.ca/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken ${CI_JOB_TOKEN}
- npm publish
Running the pipeline, I get the following error
npm ERR! code E404
npm ERR! 404 Not Found - PUT https://gitlab.NAME.ca/api/v4/projects/8/packages/npm/#NAME%2fproject - 404 Not Found
npm ERR! 404
npm ERR! 404 '#NAME/project#1.0.0' 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! /root/.npm/_logs/2021-04-04T23_18_32_289Z-debug.log
Anything helps thanks!
I recently joined a team and updated an already existing react native plugin that was published on npm. Now I want to update the package on npm.
I've tried the command
npm publish
but I get these errors:
npm ERR! code E404
npm ERR! 404 Not Found - PUT https://registry.npmjs.org/myplugin - Not found
npm ERR! 404
npm ERR! 404 'myplugin#3.5.0' 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 my browser for the link https://registry.npmjs.org/myplugin and it's working properly.
I have pushed the latest updated version on git so everything is OK on GitHub.
I have a npm account and I'm an admin in the organization account. Any guidance on how I can update the package on npm will be much appreciated.
I just logged in to my account in npm and that solved my problem.
I add package as described in docs in second point:
$ npm install #here/maps-api-for-javascript --save
After that I get in package.json:
//...
"dependencies": {
"#here/maps-api-for-javascript": "^1.17.2"
}
//...
After some changes I deploy code to remote server and type:
$ npm install
and get error:
/...
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/#here%2fmaps-api-for-javascript - Not found
npm ERR! 404
npm ERR! 404 '#here/maps-api-for-javascript#1.17.2' 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'm using yarn (v3.2.4):
In this case, you must add the next code to your .yarnrc.yml
nodeLinker: node-modules
npmScopes:
here:
npmPublishRegistry: "https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript/"
npmRegistryServer: "https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript/"
After, you can do Yarn install.
I'm new in react-native and tried to install expo-cli in windows 10 following the page of react-native, id used the command npm init expo-cli and I have that error:
npm ERR! code E404
npm ERR! 404
npm ERR! 404 'create-expo-cli#latest' 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\Miguelangel\AppData\Roaming\npm-cache\_logs\2020-06-24T11_01_08_933Z-debug.log
Install for [ 'create-expo-cli#latest' ] failed with code 1
There is no create-expo-cli package. It's just expo-cli.
npm install -g expo-cli