npm-install

npm install failed EPROTO fetch request failed

只谈情不闲聊 提交于 2020-01-03 19:03:11
问题 I get fetch failed error when I try to install a package from npm. I set the config of the npm: - set strict-ssl to false - set registry with https://registry.npmjs.org/ - set the proxy and https-proxy When I search a package, the get method to the registry worked fine however when I try to install, I got an error I got this error after I upgrade my node with the last version of Node 8.9.1 with npm 5.5.1. I tried many things to fix it: - deleted the content and reconfigured my .npmrc settings

“npm install” gives error message “invalid”, what is it?

你。 提交于 2020-01-03 10:57:16
问题 Please check the picture. I guess it's related to package.json but am not very sure. Replying to the comment for more information Initially I was installing material-ui . The detailed messages are here: I:\react-boilerplate>npm install material-ui react-boilerplate@3.4.0 I:\react-boilerplate +-- material-ui@0.17.1 | +-- keycode@2.1.8 | +-- lodash.throttle@4.1.1 | +-- UNMET PEER DEPENDENCY react@^15.4.2 | +-- react-addons-create-fragment@15.4.2 | +-- react-addons-transition-group@15.4.2 | +--

Error: Cannot find module 'fabric-client'

亡梦爱人 提交于 2020-01-03 08:20:07
问题 After normal run the ./startFabric.sh(it shows as follow ): 2017-07-21 07:47:37.477 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> INFO 00a Chaincode invoke successful. result: status:200 2017-07-21 07:47:37.477 UTC [main] main -> INFO 00b Exiting..... Total execution time : 364 secs ... Then I try to run npm install in the \facbar But I get err again . $ npm install > grpc@1.2.4 install C:\Users\Lenovo.WIN10-20170627G\Desktop\fabric-samples- release\fabcar\node_modules\grpc > node-pre-gyp

Installing 3rd Party Applications with Angular-CLI

最后都变了- 提交于 2020-01-01 07:06:28
问题 I am new to angular-cli. I want to install the npm library mdbootstrap. I followed the instructions here: Angular CLI Instructions Specifically, I did this: I installed mdbootstrap via npm install bootstrap . I added all of the files in the dist directory to my angular-cli.json . angular-cli.json additions: "styles": [ "../node_modules/mdbootstrap/css/bootstrap.min.css", "../node_modules/mdbootstrap/css/mdb.min.css", "../node_modules/mdbootstrap/css/style.css" ], "scripts": [ "/node_modules

cleancss command not working

泪湿孤枕 提交于 2020-01-01 06:45:30
问题 I installed clean-css locally but my npm script is throwing an error because cleancss is not found ( sh: cleancss: command not found ). I tried running cleancss straight from the command line and installed it globally ( npm install -g clean-css ) but my shell still doesn't know about it. All other packages are working fine. Here's what my package.json looks like: { "scripts": { "lint": "echo '=> linting' && jshint **/*.js", "minify:js": "echo '=> minify:js' && uglifyjs main.js -o public/js

cleancss command not working

冷暖自知 提交于 2020-01-01 06:45:15
问题 I installed clean-css locally but my npm script is throwing an error because cleancss is not found ( sh: cleancss: command not found ). I tried running cleancss straight from the command line and installed it globally ( npm install -g clean-css ) but my shell still doesn't know about it. All other packages are working fine. Here's what my package.json looks like: { "scripts": { "lint": "echo '=> linting' && jshint **/*.js", "minify:js": "echo '=> minify:js' && uglifyjs main.js -o public/js

npm gets stuck on fetchMetadata -> network

不想你离开。 提交于 2019-12-31 10:08:01
问题 My npm is getting stuck a lot, whether its npm install from package.json or individual packages. Right now, I'm not even able to sudo npm install node-inspector -g I'm using node 6.2.1 , npm 3.9.5 on ubuntu 16.04 npm cache clear didn't help. The installation takes hours or fails. 回答1: Check if there any issues with proxies if you using any. You can try also to set npm's endpoint manually: npm config set registry="http://registry.npmjs.org" 回答2: try yarn installer instead of npm: sudo npm

npm install error `not foundram Files/nodejs/npm: 3: /mnt/c/Program Files/nodejs/npm:`

与世无争的帅哥 提交于 2019-12-31 08:34:50
问题 I have installed Ubuntu Bash on Windows. I already have nodejs and npm on my windows machine at C:\Program Files\nodejs . In the bash shell in Windows, I am running a script which uses npm install command. The script is giving following error : not foundram Files/nodejs/npm: 3: /mnt/c/Program Files/nodejs/npm: : not foundram Files/nodejs/npm: 5: /mnt/c/Program Files/nodejs/npm: /mnt/c/Program Files/nodejs/npm: 6: /mnt/c/Program Files/nodejs/npm: Syntax error: word unexpected (expecting "in")

npm UNMET PEER DEPENDENCY error, Can't install braintree

大城市里の小女人 提交于 2019-12-30 12:15:29
问题 I'm trying somethings with braintree and firebase functions. But when i run: npm install braintree My terminal says: PS C:\Users\Hugo\Desktop\The store\web2\store\functions> npm install braintree functions@ C:\Users\Hugo\Desktop\The store\web2\store\functions +-- braintree@2.4.0 `-- UNMET PEER DEPENDENCY firebase-admin@5.4.3 +-- UNMET PEER DEPENDENCY extraneous error: ENOENT: no such file or directory, open 'C:\Users\Hugo\Desktop\The store\web2\store\functions\node_modules\firebase-admin\node

NPM link done at install time inside package.json

本秂侑毒 提交于 2019-12-25 09:08:54
问题 I'm in the process of creating 2 projects. Project 1 will be like a library. Project 2 will be an application which uses Project 1's library code. So I wish to do a npm link from Project 1 to Project 2. I can do this at the command line using the follow: cd ../project1 npm link cd ../project2 npm link project1_name and it works fine. But I don't wish to do that, I want when I install the package.json to not only set up the various dependencies to also set up the link. So how would I do that