npm-install

npm install error/issue

删除回忆录丶 提交于 2019-11-27 08:16:41
问题 I have already set proxy configurations in .npmrc file. Executing the npm install command gives me error as follows" $ npm install npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" npm ERR! node v6.9.4 npm ERR! npm v3.10.10 npm ERR! code ECONNRESET npm ERR! network tunneling socket could not be established, statusCode=400 npm ERR! network This is most likely not a problem with npm itself npm ERR!

How to update TypeScript to latest version with npm?

。_饼干妹妹 提交于 2019-11-27 06:56:16
Currently I have TypeScript 1.0.3.0 version installed on my machine. I want to update it to latest one i.e. 2.0. How to do this with npm? Try npm install -g typescript@latest . You can also use npm update instead of install, without the latest modifier. On Windows open command prompt (cmd.exe) Recommended: npm install -g typescript@latest This will install the latest typescript version if not already installed , otherwise it will update the current installation to the latest version. And then verify which version is installed: tsc -v If you have typescript already installed you could also use

Installing npm package fails with 404

邮差的信 提交于 2019-11-27 06:44:14
问题 Using the command prompt, I am trying to install angular CLI and it fails. I have npm version 5.5.1 and node version v8.9.1. I am trying to install angular cli using the command npm install -g @angular/cli@latest and it fails with the error: npm ERR! code E404 npm ERR! 404 Not Found: @angular/cli@latest npm ERR! A complete log of this run can be found in: I look at the log file and I see its trying to fetch the package from a location that doesn't exist. Not sure from where it gets pulled.

npm ERR! Error: connect ECONNREFUSED

坚强是说给别人听的谎言 提交于 2019-11-27 05:17:48
I'm trying to update the npm (node package manager) using the command: npm install npm@latest -g but I', getting the following error in the command prompt: does someone know what this really means? npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\ node_modules\\npm\\bin\\npm-cli.js" "install" "npm@latest" "-g" npm ERR! node v6.9.5 npm ERR! npm v3.10.10 npm ERR! code ECONNREFUSED npm ERR! errno ECONNREFUSED npm ERR! syscall connect npm ERR! Error: connect ECONNREFUSED xxx.xxx.xx.xxx:xxx npm ERR! at Object.exports._errnoException (util

npm install - javascript heap out of memory

血红的双手。 提交于 2019-11-27 03:14:03
问题 When running npm install -g ionic I get the following error: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory Is there a way to globally increase the node.js memory limit? 回答1: You can launch NPM using : node --max_old_space_size=8000 $(which npm) install -g ionic As described here, the default is 4000 (4Gb). 回答2: I flagged this as a duplicate, but in case anyone happens across it, I posted the modern solution to this problem over at https://stackoverflow.com

Installing create-react-app gives npm ERR! shasum check failed and npm ERR! Unexpected end of JSON input while parsing near '…mojOzGIEI2rg0m24Yb5Oq'

只愿长相守 提交于 2019-11-27 02:59:58
问题 Errors when i use sudo npm install create-react-app -g npm ERR! Linux 4.13.0-39-generic npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "i" "create-react-app" "-g" npm ERR! node v6.11.4 npm ERR! npm v3.5.2 npm ERR! shasum check failed for /tmp/npm-16477-77596b49/registry.npmjs.org/tar/-/tar-2.2.1.tgz npm ERR! Expected: 8e4d2a256c0e2185c6b18ad694aec968b83cb1d1 npm ERR! Actual: 5eb06eb521673d0940a4deb11baf89d62647f193 npm ERR! From: https://registry.npmjs.org/tar/-/tar-2.2.1.tgz when use npm

Error : getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443

夙愿已清 提交于 2019-11-27 01:36:12
问题 I am working on a corporate network. Trying to install npm. But I'm getting this error again and again. $ npm install npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" npm ERR! node v6.1.0 npm ERR! npm v3.8.6 npm ERR! code ENOTFOUND npm ERR! errno ENOTFOUND npm ERR! syscall getaddrinfo npm ERR! network getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443 npm ERR! network This is

npm - EPERM: operation not permitted on Windows

我是研究僧i 提交于 2019-11-27 00:44:00
I ran npm config set prefix /usr/local After running that command, When trying to run any npm commands on Windows OS I keep getting the below. Error: EPERM: operation not permitted, mkdir 'C:\Program Files (x86)\Git\local' at Error (native) Have deleted all files from C:\Users\<your username>\.config\configstore\ It did not work. Any suggestion ? Lahar Shah Running this command was my mistake. npm config set prefix /usr/local Path /usr/local is not for windows. This command changed the prefix variable at 'C:\Program Files (x86)\Git\local' To access and make a change to this directory I need to

npm install and build of forked github repo

ⅰ亾dé卋堺 提交于 2019-11-27 00:01:10
This is not a totally new question, but I've been looking around for a good while now and I'm having trouble finding a solution. I'm using a module for my angular app called angular-translate. However, I've had to make a few small modifications to the source code to get everything working the way I'd like, and now I want to persist those changes on npm install . A colleague suggested that I fork the repo of the source code and point to my forked repo as a dependency, which I've tried in these ways, e.g. npm install https://github.com/myRepo/angular-translate npm install https://github.com

Why does “npm install” rewrite package-lock.json?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-26 21:14:16
I just recently upgraded to npm@5. I now have a package-lock.json file with everything from package.json. I would expect that, when I run npm install that the dependency versions would be pulled from the lock file to determine what should be installed in my node_modules directory. What's strange is that it actually ends up modifying and rewriting my package-lock.json file. For example, the lock file had typescript specified to be at version 2.1.6. Then, after the npm install command, the version was changed to 2.4.1. That seems to defeat the whole purpose of a lock file. What am I missing? How