Can not install npm install #here/maps-api-for-javascript --save - javascript

I can not install Maps API for node.js, according to this manual
https://developer.here.com/documentation/maps/3.1.20.0/dev_guide/topics/get-started-bundling.html
PS K:\Gran-canar\NODE-HERE\first-project> npm install #here/maps-api-for-javascript --save
npm ERR! code E404
npm ERR! 404 Not Found - GET http://registry.npmjs.org/#here%2fmaps-api-for-javascript - Not found
npm ERR! 404
npm ERR! 404 '#here/maps-api-for-javascript#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\Alvares\AppData\Roaming\npm-cache_logs\2020-12-04T03_04_24_998Z-debug.log
PS K:\Gran-canar\NODE-HERE\first-project>

For me this worked
npm install #here/maps-api-for-javascript --registry=https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript/

This seems to be an old post so it is probably too late to help the OP but From your error, it looks you missed running this line:
npm config set #here:registry https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript/
As npm install #here/anything should not be checking HTTP://registry.npmjs.org/ for the module files as they do not exist there.

Related

I encountered a problem when installing Next JS

I was installing NextJS when I encountered the following error:
D:\Codes\React\Learn>npx create-next-app
npm WARN using --force Recommended protections disabled.
npm WARN using --force Recommended protections disabled.
npm ERR! code E404
npm ERR! 404 File Not Found - GET https://skimdb.npmjs.com/registry/create-next-app
npm ERR! 404
npm ERR! 404 'create-next-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:
npm ERR! C:\Users\User\AppData\Local\npm-cache\_logs\2023-02-06T12_41_40_938Z-debug-0.log
Can anyone help me?
I wanted to work with NextJS......but I encountered this error!
You should give directory address in the installation command ,
Try : npx create-next-app#latest . if you want to install the packages in current directory or
npx create-next-app#latest YOUR_FOLDER_NAME and packages will be installed in new folder with the given name as YOUR_FOLDER_NAME.
Try this:
npm i -g create-next-app
It will install create next app globally. To create a next app run this command, if you want to install in current folder.
npx create-next-app
Otherwise, specify the folder name like,
npx create-next-app [your app name]

when trying npm install -D live-sever errors occur javascript

I always face troubles when i do npm install in my system. this time I am following javascript tutorial so he shows us to use the command npm install -D live-sever and it occurs errors. by the way im using internet behind proxy.
`npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/live-sever - Not found
npm ERR! 404
npm ERR! 404 'live-sever#*' 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.
The correct name is live-server:
npm install -D live-server

Lerna adding command exits with the error of not related packages

I'm using lerna to manage my multirepo with packages that are relating to each other. I did not have this issue before instalation of a new opereating system. Now when I'm trying to use lerna add to add a dependency on package to package, it produces error with the mentioned packages that are not related to either the one that I'm targeting and the one that is a dependency.
Here is my console output:
[filip#filip-thinkpad platform]$ lerna add #devell-platform/webcomponents-base --scope=#devell-platform/web-manual
lerna notice cli v3.18.3
lerna notice filter including "#devell-platform/web-manual"
lerna info filter [ '#devell-platform/web-manual' ]
lerna info Adding #devell-platform/webcomponents-base in 1 package
lerna info Bootstrapping 26 packages
lerna info Installing external dependencies
lerna ERR! npm install exited 1 in '#devell-platform/model'
lerna ERR! npm install stderr:
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/#devell-platform%2fbase-types - Not found
npm ERR! 404
npm ERR! 404 '#devell-platform/base-types#0.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! /home/filip/.npm/_logs/2020-09-27T13_19_58_840Z-debug.log
lerna ERR! npm install exited 1 in '#devell-platform/model'
lerna WARN complete Waiting for 3 child processes to exit. CTRL-C to exit immediately.
lerna ERR! npm install exited 1 in '#devell-platform/model'
lerna ERR! npm install stderr:
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/#devell-platform%2fbase-types - Not found
npm ERR! 404
npm ERR! 404 '#devell-platform/base-types#0.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! /home/filip/.npm/_logs/2020-09-27T13_19_58_840Z-debug.log
lerna ERR! npm install exited 1 in '#devell-platform/model'
lerna WARN complete Waiting for 3 child processes to exit. CTRL-C to exit immediately.
The package #devell-platform/webcomponents-base has no dependency on either #devell-platform/model nor #devell-platform/base-types.
I tried various things, like deleting the model package, but then some other package
is displayed as the cause of the error.
There is no package #devell-platform/webcomponents-base. If it existed before, it must have been removed.
This has nothing to do with lerna but is just a coincidence. A plain install with npm install #devell-platform/webcomponents-base fails as well.

npm ERR! 404 Not Found - GET https://registry.npmjs.org/create-myreactnativeapp - Not found

I installed the Expo CLI and Node version 12
When I tried to create a new react native project I get this error
See error image here
Error
PS C:\Users\leosu\Documents\GitProjects> npm init myreactnativeapp
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/create-myreactnativeapp - Not found
npm ERR! 404
npm ERR! 404 'create-myreactnativeapp#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\leosu\AppData\Roaming\npm-cache_logs\2020-05-12T23_54_32_833Z-debug.log
Install for [ 'create-myreactnativeapp#latest' ] failed with code 1
PS C:\Users\leosu\Documents\GitProjects>
Any ideas on how to solve this?
If you're using Expo it should be:
expo init myreactnativeapp
Instead of npm init myreactnativeapp
Assuming that you already ran npm install -g expo-cli

How to install a NodeJS package from a github repo

I'm trying to install a package from a github repo but I get the following message:
npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/z0019rb/.nvm/versions/node/v4.4.7/bin/node" "/Users/z0019rb/.nvm/versions/node/v4.4.7/bin/npm" "install"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! code E404
npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/target-digital-design-tokens
npm ERR! 404
npm ERR! 404 'target-digital-design-tokens' 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 'target-base-pattern-library'
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! Please include the following file with any support request:
npm ERR! /Users/z0019rb/dev/design-systems/designsystems-site/npm-debug.log
And this is what my package.json looks like:
"target-digital-design-tokens": "git+ssh://git#git.target.com:design-systems/design-tokens.git"
Not sure what I'm doing wrong. The repo which I'm trying to install has a package.json. Thanks!
try this instead :
"git+https://target.com/design-systems/design-tokens"
and don't forget to set git repo in your package.json like so :
"repository": {
"type": "git",
"url": "git#target.com:design-systems/design-tokens.git"
},
If the git server is behind a proxy don't forget to set env http_proxy before npm install something like this :
npm config set proxy "http://domain......#myproxy:8080"
npm config set https-proxy "http://domain......#myproxy:8080"

Categories

Resources