npm-install

NPM Install Error:Unexpected end of JSON input while parsing near '…nt-webpack-plugin“:”0'

早过忘川 提交于 2019-11-26 17:27:23
When Creating a new Angular 5 project: node version: 8.9.2 npm version: 5.5.1 My Command is npm install -g @angular/cli the Error is npm ERR! Unexpected end of JSON input while parsing near '...nt-webpack-plugin":"0' npm ERR! A complete log of this run can be found in: C:\Users\Aashitec\AppData\Roaming\npm-cache_logs\2017-12-06T13_10_10_729Z-debug.log the error log is http://www.aashitechno.in/2017-12-06T13_10_10_729Z-debug.log This solved it for me npm cache clean --force then run npm install -g @angular/cli@latest Solution: npm cache clean --force then try again to create your app (here when

Installing a local module using npm?

血红的双手。 提交于 2019-11-26 16:52:08
I have a downloaded module repo, I want to install it locally, not globally in another directory? What is an easy way to do this? Rich Apodaca From the npm-link documentation : In the local module directory: $ cd ./package-dir $ npm link In the directory of the project to use the module: $ cd ./project-dir $ npm link package-name Or in one go using relative paths: $ cd ./project-dir $ npm link ../package-dir This is equivalent to using two commands above under the hood. fancy you just provide one <folder> argument to npm install , argument should point toward the local folder instead of the

How do I fix the npm UNMET PEER DEPENDENCY warning?

六月ゝ 毕业季﹏ 提交于 2019-11-26 12:44:47
I'm on Windows 10, with Node 5.6.0 and npm 3.6.0. I'm trying to install angular-material and mdi into my working folder. npm install angular-material mdi errors with: +-- angular@1.5.0 +-- UNMET PEER DEPENDENCY angular-animate@^1.5.0 +-- UNMET PEER DEPENDENCY angular-aria@^1.5.0 +-- angular-material@1.0.6 +-- UNMET PEER DEPENDENCY angular-messages@^1.5.0 `-- mdi@1.4.57 npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\xxxxx\Desktop\ngClassifieds\package.json' npm WARN angular-material@1.0.6 requires a peer of angular-animate@^1.5.0 but none was installed. npm WARN angular

How to update TypeScript to latest version with npm?

安稳与你 提交于 2019-11-26 12:09:36
问题 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? 回答1: Try npm install -g typescript@latest . You can also use npm update instead of install, without the latest modifier. 回答2: Open command prompt (cmd.exe/git bash) 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.

npm ERR! Error: connect ECONNREFUSED

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-26 11:27:15
问题 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

npm ERR! code ELIFECYCLE

一个人想着一个人 提交于 2019-11-26 10:16:32
I'm trying to learn react, so I have this sample code for the fullstack react voting app, and I am trying to get it work but after running npm install followed by npm start I receive the following error: npm ERR! Darwin 16.4.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "server" npm ERR! node v7.5.0 npm ERR! npm v4.3.0 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! voting_app@1.1.0 server: `live-server --public -- host=localhost --port=3000 --middleware=./disable-browser-cache.js` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed

npm install and build of forked github repo

拟墨画扇 提交于 2019-11-26 07:58:57
问题 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

Cannot install NodeJs: /usr/bin/env: node: No such file or directory

别来无恙 提交于 2019-11-26 07:50:21
问题 I\'m trying to install nodeJs into my Ubuntu 14.04 in order to use GruntJs. I\'ve read about Ubuntu different way of doing it (issues?), so this is what I\'ve done in order to install it: sudo apt-get install npm sudo npm install -g grunt-cli Typing grunt after that I\'ve got the error: /usr/bin/env: node: No such file or directory So, I\'ve tried: curl -sL https://deb.nodesource.com/setup | sudo bash - sudo apt-get install -y nodejs sudo apt-get update And trying again, and still getting the

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

你说的曾经没有我的故事 提交于 2019-11-26 06:51:40
问题 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

npm ERR! code ELIFECYCLE

余生颓废 提交于 2019-11-26 05:42:17
问题 I\'m trying to learn react, so I have this sample code for the fullstack react voting app, and I am trying to get it work but after running npm install followed by npm start I receive the following error: npm ERR! Darwin 16.4.0 npm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"run\" \"server\" npm ERR! node v7.5.0 npm ERR! npm v4.3.0 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! voting_app@1.1.0 server: `live-server --public --