C:\SARANRAJ-K.R\Medrec\meds_6.2.0_update7>npm install
npm WARN deprecated express3-handlebars#0.5.2: THIS PACKAGE HAS BEEN RENAMED TO:
npm WARN deprecated grunt-ngmin#0.0.3: use grunt-ng-annotate instead
npm WARN deprecated phantomjs#2.1.7: Package renamed to phantomjs-prebuilt. Plea
npm WARN deprecated tough-cookie#0.12.1: ReDoS vulnerability parsing Set-Cookie
npm WARN deprecated ngmin#0.4.1: use ng-annotate instead
npm WARN deprecated tough-cookie#0.9.15: ReDoS vulnerability parsing Set-Cookie
npm WARN deprecated node-uuid#1.4.8: Use uuid module instead
npm WARN deprecated tough-cookie#2.2.2: ReDoS vulnerability parsing Set-Cookie h
npm WARN deprecated deflate-crc32-stream#0.1.2: module has been merged into crc3
npm ERR! code 128
npm ERR! Command failed: C:\Program Files\Git\cmd\git.EXE checkout 74fd92dc48f95
npm ERR! fatal: reference is not a tree: 74fd92dc48f9575abc701fbd84decad160c5cc6
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\gd14980\AppData\Roaming\npm-cache\_logs\2017-06-20T05_55_0
I got above error while run npm install command
Try using this command.
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
sudo ln -sf /usr/local/n/versions/node/8.0/bin/node /usr/bin/node
I did also faced similar issue while running "npm run bootstrap" and below is the error
npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q git://github.com/rehooks/window-scroll-position.git /root/.npm/_cacache/tmp/git-clone-ab3c3294/.git
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-ab3c3294/.git'
npm ERR!
But below is the solution as it was the issue due to node version.
I previously using below versions due to which it was failing,
npm --version
6.10.2
[Pipeline] sh
node --version
v12.9.1
which I changed to,
npm --version
6.10.2
[Pipeline] sh
+ node --version
v12.9.1
and it started working...;)
Related
I am kind of new at this. Please help me. Thanks in advance.
PS C:\Project Code\ssp-ui-app> npm install
npm ERR! code EPROTO npm ERR! syscall write npm ERR! errno EPROTO npm
ERR! request to
https://codeload.github.com/eligrey/FileSaver.js/tar.gz/e865e37af9f9947ddcced76b549e27dc45c1cb2e
failed, reason: write EPROTO 045D0000:error:0A000152:SSL
routines:final_renegotiate:unsafe legacy renegotiation
disabled:c:\ws\deps\openssl\openssl\ssl\statem\extensions.c:908: npm
ERR!
Update your node.js installation.The following commands should do it (from here):
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
or reinstall node, then update npm.
First I removed node
apt-get purge node
Then install node according to the distibution. Docs here .
Then
npm install npm#latest -g
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 install create-react-app
- npm-version : 6.0.0
- node-version: 8.11.1
error is:
npm ERR! Unexpected end of JSON input while parsing near '...mojOzGIEI2rg0m24Yb5Oq'
npm ERR! A complete log of this run can be found in:
npm ERR! /home/dilipcoder/.npm/_logs/2018-05-05T11_34_14_721Z-debug.log
i have already tried these options
npm cache clean --force
reinstalling npm and node
switching different version of npm
error which I get while installing create-react-app other packages installed properly
the error npm ERR! shasum check failed and npm ERR! Unexpected end of JSON input while parsing near'....' , will be solved by switching npm reigistry from the list of given npm registry.
List of Npm registry:
https://registry.npmjs.org/ (Dfault One)
http://r.cnpmjs.org/
https://registry.npm.taobao.org/
https://registry.nodejitsu.com/
http://registry.mirror.cqupt.edu.cn
https://skimdb.npmjs.com/registry
https://npm.open-registry.dev/ (https://open-registry.dev)
To switch just type
npm config set registry "https://registry.npmjs.com/"
Replace the registry url with the above urls check which one works for you.
After That:
npm cache clear --force
npm cache verify
now error will be solved.
"npm cache clean --force" didn't work for me but removing package-lock.json worked.
https://github.com/vuejs-templates/webpack/issues/990#issuecomment-395750082
Error:
SyntaxError: Unexpected end of JSON input while parsing near
Removing package-lock.json worked for me.
Add Powershell script or Linux script as below,
Powershell:
Remove-Item package-lock.json -Force
Linux:
rm -rf package-lock.json
Path In Azure Devops:
$(System.DefaultWorkingDirectory)\appName\appName\ClientApp\node_modules'
Note - appName is an example you can add a path as per your source code.
I've recently generated a new ssh key on my mac and I can't seem to install angular/cli anymore. When I try to run npm install -g angular/cli I get this error:
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git#github.com/angular/cli.git
npm ERR!
npm ERR! ERROR: Repository not found.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
At the same time typescript installed perfectly fine. My npm version is 5.3.0 and node version is 8.2.1.
Thanks in advance!
I was using the incorrect repo name. It should have been:
npm install -g #angular/cli
Notice the #.
I have been trying to install blur-admin via (git clone https://github.com/akveo/blur-admin.git). But when I install it from git bash as mentioned in the installation guide it shows the following error:
bower ECONFLICT Unable to
find suitable version for angular
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program
Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v4.4.5
npm ERR! npm v2.15.5
npm ERR! code ELIFECYCLE
npm ERR! blur_admin#1.2.0 postinstall: bower install npm ERR! Exit
status 1 npm ERR! npm ERR! Failed at the blur_admin#1.2.0 postinstall
script 'bower install'.
npm ERR! This is most likely a problem with the blur_admin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! bower install
npm ERR! You can get information on how to open an issue for this
project with:
npm ERR! npm bugs blur_admin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm ERR! npm owner ls blur_admin
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\xampp\htdocs\blur-admin\npm-debug.log
The issue is because Bower is not installed in your Windows Machine.
Try to install bower before installing this AngularJs template.
Use the following command to install bower:
npm install -g bower
Also check if Gulp - Task automation tool is install or not.
Use the following command to install the same:
npm install -g gulp
Now use npm install to install the project and its Package Dependencies.
To run the application:
gulp serve
Sorry I got a little bit late.
Did you try to move the /bower_components/ folder from the /client/ directory to your root project directory? That worked for me.
First
npm i -g npm
Then delete everything in node_modules. When those are deleted, cd to your directory and
npm install
Worked for me. If you are on OSX or Linux, use sudo.
If you are on Windows, make sure you're running as administrator.
The issue is from Bower, as Bower is not installed into the system.
First install the bower by following:
npm install -g bower
Then run the app by :
gulp serve
I am trying out AngularJS for the first time. I thought of using the angular-seed repository as a base template for starting my own AngularJS app after completing some of the courses on CodeSchool. After cloning the angular-seed repository to my computer I ran the following command within the angular-seed directory:
npm install
However, I get an error and I am unable to run the application using:
npm start
I followed the instructions as in the README file. However, the following ouput is shown in the terminal:
evert#evert-Latitude-E6530:~/AngularJS/workspace/angular-seed$ npm install
npm WARN deprecated graceful-fs#3.0.8: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs#^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
> bufferutil#1.2.1 install /home/evert/AngularJS/workspace/angular-seed/node_modules/bufferutil
> node-gyp rebuild
make: Entering directory `/home/evert/AngularJS/workspace/angular-seed/node_modules/bufferutil/build'
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
SOLINK_MODULE(target) Release/obj.target/bufferutil.node
COPY Release/bufferutil.node
make: Leaving directory `/home/evert/AngularJS/workspace/angular-seed/node_modules/bufferutil/build'
> utf-8-validate#1.2.1 install /home/evert/AngularJS/workspace/angular-seed/node_modules/utf-8-validate
> node-gyp rebuild
make: Entering directory `/home/evert/AngularJS/workspace/angular-seed/node_modules/utf-8-validate/build'
CXX(target) Release/obj.target/validation/src/validation.o
SOLINK_MODULE(target) Release/obj.target/validation.node
COPY Release/validation.node
make: Leaving directory `/home/evert/AngularJS/workspace/angular-seed/node_modules/utf-8-validate/build'
> ws#0.4.32 install /home/evert/AngularJS/workspace/angular-seed/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
make: Entering directory `/home/evert/AngularJS/workspace/angular-seed/node_modules/ws/build'
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
make: Leaving directory `/home/evert/AngularJS/workspace/angular-seed/node_modules/ws/build'
> angular-seed#0.0.0 postinstall /home/evert/AngularJS/workspace/angular-seed
> bower install
/home/evert/AngularJS/workspace/angular-seed/node_modules/bower/lib/node_modules/configstore/index.js:54
throw err;
^
Error: EACCES: permission denied, open '/home/evert/.config/configstore/bower-github.json'
You don't have access to this file.
at Error (native)
at Object.fs.openSync (fs.js:634:18)
at Object.fs.readFileSync (fs.js:502:33)
at Object.create.all.get (/home/evert/AngularJS/workspace/angular-seed/node_modules/bower/lib/node_modules/configstore/index.js:35:26)
at Object.Configstore (/home/evert/AngularJS/workspace/angular-seed/node_modules/bower/lib/node_modules/configstore/index.js:28:44)
at readCachedConfig (/home/evert/AngularJS/workspace/angular-seed/node_modules/bower/lib/config.js:19:23)
at defaultConfig (/home/evert/AngularJS/workspace/angular-seed/node_modules/bower/lib/config.js:11:12)
at Object.<anonymous> (/home/evert/AngularJS/workspace/angular-seed/node_modules/bower/lib/index.js:16:32)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents#1.0.12
npm ERR! Linux 3.13.0-85-generic
npm ERR! argv "/home/evert/local/bin/node" "/home/evert/local/bin/npm" "install"
npm ERR! node v6.1.0
npm ERR! npm v3.8.9
npm ERR! code ELIFECYCLE
npm ERR! angular-seed#0.0.0 postinstall: `bower install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-seed#0.0.0 postinstall script 'bower install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-seed package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! bower install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular-seed
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular-seed
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/evert/AngularJS/workspace/angular-seed/npm-debug.log
evert#evert-Latitude-E6530:~/AngularJS/workspace/angular-seed$
I have the node v6.1.0 installed with npm v3.8.9. I am running Ubuntu 14.04 LTS.
I followed some of the troubleshooting tips for npm, but still had no success.
Any other help/suggestions to get this fixed and working?
Please try this command:
sudo npm -g install bower
This will install bower as global npm package under sudo privileges.