npm-install

407 Authentication required npm

£可爱£侵袭症+ 提交于 2020-01-14 09:53:06
问题 Hello everyone I´ve been trying to configure and use npm on my enterprise PC without success. I´ve set proxy, https-proxy, strict-ssl false, registry http://registry.npmjs.org proxy has been set like this "http://user:password@proxy_ip:proxy:port" Where the password has a special character written in urlencode. npm config get proxy returns proxy with credentials as they should be. I have cleared my npm cache and tried again. No success. Any ideas what can be the problem? 回答1: Usually, when

How to solve permission denied error with react native?

北慕城南 提交于 2020-01-13 11:23:31
问题 UPDATE: In terminal I see this file has "-rw-r--r--". What command do I need to run in order to change this to the right permission? I'm trying to run react-native run-ios and I keep getting the error shown below: return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^ Error: EACCES: permission denied, open '/Users/sharatakasapu/Desktop/projects/albums/node_modules/.cache/@babel/register/.babel.7.2.2.development.json' at Object.fs.openSync (fs.js:646:18) at Object.fs

node_modules/.bin/package.cmd file in node js

偶尔善良 提交于 2020-01-12 05:53:27
问题 I am new to node js. I am trying to build a npm module and confused a bit with cmd file present in /node_modules/.bin folder with the name of the package locally. I installed multiple packages as dependencies and found that cmd files are different. jade.cmd @IF EXIST "%~dp0\node.exe" ( "%~dp0\node.exe" "%~dp0\..\jade\bin\jade" %* ) ELSE ( @SETLOCAL @SET PATHEXT=%PATHEXT:;.JS;=;% node "%~dp0\..\jade\bin\jade" %* ) mocha-casperjs.cmd @IF EXIST "%~dp0\/bin/sh.exe" ( "%~dp0\/bin/sh.exe" "%~dp0\..

Angular - npm install fails in installing firebase packages

丶灬走出姿态 提交于 2020-01-06 06:32:55
问题 I try to clone the Angular project on my computer: 1) Clone from VCS 2) Hit npm install 3) installation fails I think this is something related to npm itself so I try to use npm cache clear --force , but no luck! Package.json File: { ... }, "private": true, "dependencies": { "@angular/animations": "~7.0.0", "@angular/common": "~7.0.0", "@angular/compiler": "~7.0.0", "@angular/core": "~7.0.0", "@angular/fire": "^5.1.0", "@angular/forms": "~7.0.0", "@angular/http": "~7.0.0", "@angular/platform

Ionic 2 - Error while installing node_modules with npm install?

时光怂恿深爱的人放手 提交于 2020-01-05 04:19:25
问题 I've installed latest Node JS ( v 8.1.0 ), Ionic and Cordova then tried to install node_modules using npm install command in ionic demo tab project created using ionic start myApp tabs and I got the following error. I'm using Windows 10 Pro . I have tried lot but yet to resolve the worry. any help would be greatly appreciated. npm install ✖ Running command - failed! [ERROR] An error occurred while running npm install (exit code 1): npm WARN prefer global node-gyp@3.6.2 should be installed

Ionic 2 - Error while installing node_modules with npm install?

为君一笑 提交于 2020-01-05 04:19:06
问题 I've installed latest Node JS ( v 8.1.0 ), Ionic and Cordova then tried to install node_modules using npm install command in ionic demo tab project created using ionic start myApp tabs and I got the following error. I'm using Windows 10 Pro . I have tried lot but yet to resolve the worry. any help would be greatly appreciated. npm install ✖ Running command - failed! [ERROR] An error occurred while running npm install (exit code 1): npm WARN prefer global node-gyp@3.6.2 should be installed

How to add Android support to my Ionic app project?

泪湿孤枕 提交于 2020-01-04 09:37:19
问题 I have created an Ionic app project. I want to add Android support to my app. For that I used "ionic platform add Android. But my system shows some errors. I am using a windows machine. The errors showing in cmd is Adding android project... Running command: cmd "/s /c "C:\Users\SYSTEM-03\.cordova\lib\npm_cache\cordova-android\6.0.0\package\bin\create.bat E:\workspace\appstore\demoapp\platforms\android com.ionicframework.demoapp722446 demoapp --cli"" C:\Users\SYSTEM-03\.cordova\lib\npm_cache

use npm with different configuration than package.json

时间秒杀一切 提交于 2020-01-04 07:47:25
问题 I have a complex production environment driven by package.json. The problem: I wish to install locally some additional packages, keep an eye on the list and versions of them. Solution (how to get there): point npm to use another config file, excluded from git, which would keep my private dependencies. Use the file to add packages to local node_modules with npm install . So actually all I need is to change configuration context of npm. I have no clue how to point npm to use a different config

npm error “Keccak bindings compilation fail.” while installing truffle

拜拜、爱过 提交于 2020-01-04 02:57:06
问题 I tried to install Truffle, but then I got this error: $ npm install -g truffle C:\Users\dany.vandermeij\AppData\Roaming\npm\truffle -> C:\Users\dany.vandermeij\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js > keccak@1.4.0 install C:\Users\dany.vandermeij\AppData\Roaming\npm\node_modules\truffle\node_modules\keccak > npm run rebuild || echo "Keccak bindings compilation fail. Pure JS implementation will be used." > keccak@1.4.0 rebuild C:\Users\dany.vandermeij\AppData\Roaming

npm install killed without a good error

淺唱寂寞╮ 提交于 2020-01-04 02:26:28
问题 When I run ng new new-app to create an angular2 app, angular-cli creates the files and runs npm install The npm install is then killed without any error message. Almost all answers online pointed to a possible problem with running out of memory, so I upgraded my VPS from 512MB to 1GB of RAM. It seems unlikely to me that a fresh Ubuntu 16.04 with 1GB RAM cannot npm install a standard angular2 app. Is there anything else I can try other than adding swap or ram? Thanks! 回答1: Adding RAM to the