Unable to install Angular Material in Vs 2015, getting an error - angular-material

These are the errors coming while installing the material-2
F:\AppTy\UIFrame\UIFrame>npm install --save #angular2-material/core #angular2-ma
terial/checkbox
npm WARN package.json angular2-quickstart#1.0.0 No description
npm WARN package.json angular2-quickstart#1.0.0 No repository field.
npm WARN package.json angular2-quickstart#1.0.0 No README data
npm WARN package.json #angular/common#2.0.0-rc.1 No description
npm WARN package.json #angular/common#2.0.0-rc.1 No repository field.
npm WARN package.json #angular/http#2.0.0-rc.0 No description
npm WARN package.json #angular/http#2.0.0-rc.0 No repository field.
npm WARN package.json #angular/http#2.0.0-rc.0 No README data
npm WARN package.json #angular/compiler#2.0.0-rc.1 No description
npm WARN package.json #angular/compiler#2.0.0-rc.1 No repository field.
npm WARN package.json #angular/core#2.0.0-rc.1 No description
npm WARN package.json #angular/core#2.0.0-rc.1 No repository field.
npm WARN package.json #angular/platform-browser-dynamic#2.0.0-rc.1 No descriptio
n
npm WARN package.json #angular/platform-browser-dynamic#2.0.0-rc.1 No repository
field.
npm WARN package.json #angular/router#2.0.0-rc.1 No description
npm WARN package.json #angular/router#2.0.0-rc.1 No repository field.
npm WARN package.json #angular/platform-browser#2.0.0-rc.1 No description
npm WARN package.json #angular/platform-browser#2.0.0-rc.1 No repository field.
npm WARN package.json #angular/upgrade#2.0.0-rc.1 No description
npm WARN package.json #angular/upgrade#2.0.0-rc.1 No repository field.
npm WARN package.json #angular/router-deprecated#2.0.0-rc.1 No description
npm WARN package.json #angular/router-deprecated#2.0.0-rc.1 No repository field.
npm WARN peerDependencies The peer dependency angular2#^2.0.0-beta.8 included fr
om #angular2-material/checkbox will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerD
ependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it
explicitly.
npm WARN package.json #angular/core#2.0.0-rc.0 No description
npm WARN package.json #angular/core#2.0.0-rc.0 No repository field.
npm WARN unmet dependency F:\AppTy\UIFrame\UIFrame\node_modules\angular2-in-memo
ry-web-api requires #angular/http#'2.0.0-rc.1' but will load
npm WARN unmet dependency F:\AppTy\UIFrame\UIFrame\node_modules\#angular\http,
npm WARN unmet dependency which is version 2.0.0-rc.0
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (
x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "#angular2-
material/core" "#angular2-material/checkbox"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package #angular/core does not satisfy its siblings' pe
erDependencies requirements!
npm ERR! peerinvalid Peer #angular/common#2.0.0-rc.1 wants #angular/core#2.0.0-r
c.1
npm ERR! peerinvalid Peer #angular/compiler#2.0.0-rc.1 wants #angular/core#2.0.0
-rc.1
npm ERR! peerinvalid Peer #angular/http#2.0.0-rc.0 wants #angular/core#2.0.0-rc.
0
npm ERR! peerinvalid Peer #angular/platform-browser#2.0.0-rc.1 wants #angular/co
re#2.0.0-rc.1
npm ERR! peerinvalid Peer #angular/platform-browser-dynamic#2.0.0-rc.1 wants #an
gular/core#2.0.0-rc.1
npm ERR! peerinvalid Peer #angular/router#2.0.0-rc.1 wants #angular/core#2.0.0-r
c.1
npm ERR! peerinvalid Peer #angular/router-deprecated#2.0.0-rc.1 wants #angular/c
ore#2.0.0-rc.1
npm ERR! peerinvalid Peer #angular/upgrade#2.0.0-rc.1 wants #angular/core#2.0.0-
rc.1
npm ERR! peerinvalid Peer #angular2-material/core#2.0.0-alpha.4 wants #angular/c
ore#^2.0.0-rc.0
npm ERR! Please include the following file with any support request:
npm ERR! F:\AppTy\UIFrame\UIFrame\npm-debug.log
F:\AppTy\UIFrame\UIFrame>

Related

How do I install a node module in a Cypress Docker container?

In the path ~/cypress-dockerfile I have the following Dockerfile:
FROM cypress/base:10
RUN npm install --save-dev cypress
WORKDIR /node_modules
RUN npm install sqlite3
RUN $(npm bin)/cypress verify
RUN $(npm bin)/cypress run
I then run docker build . but it stops with the following:
Step 4/6 : RUN npm install sqlite3
---> Running in 13de6b7a4fcf
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
> sqlite3#5.0.0 install /node_modules/sqlite3
> node-pre-gyp install --fallback-to-build
sh: 1: node-pre-gyp: not found
npm WARN enoent ENOENT: no such file or directory, open '/package.json'
npm WARN !invalid#1 No description
npm WARN !invalid#1 No repository field.
npm WARN !invalid#1 No README data
npm WARN !invalid#1 No license field.
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! sqlite3#5.0.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the sqlite3#5.0.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-08-07T13_28_54_118Z-debug.log
The command '/bin/sh -c npm install sqlite3' returned a non-zero code: 1
I think that I may be in the wrong directory but I am not sure, any help would be appreciated.

Permission denied error when I run ionic build ios command?

When I ran
ionic build ios
I get the following error.
sh: /Users/imac/Documents/TGF_IOS/node_modules/.bin/ionic-app-scripts: Permission denied
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "ionic:build" "--"
npm ERR! node v6.10.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! ionic-hello-world#0.0.0 ionic:build: `ionic-app-scripts build`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the ionic-hello-world#0.0.0 ionic:build script 'ionic-app-scripts build'.
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 ionic-hello-world package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ionic-app-scripts build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ionic-hello-world
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ionic-hello-world
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/imac/Documents/TGF_IOS/npm-debug.log
Any help will be appreciated..
Thanks in advance
Finally i have got the solution.
First step check if you have permission (read/write) to the project folder.
Secondly, run this command with sudo,
sudo npm install #ionic/app-scripts#latest --save-dev
This will install latest app-script and wll fix the issue.

Rails-ShareTribe. Error on npm install (ubuntu 16.04)

I'm very beginner on Ruby and Ruby on Rails and i just managed to install RonR my server. My problem is, when i try to install a platform called ShareTribe, although everything went just fine until bunde install , npm install came with this error:
npm ERR! Linux 4.4.0-21-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: fsevents#1.0.12
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: linux
npm ERR! notsup Actual Arch: x64
npm ERR! Please include the following file with any support request:
npm ERR! /home/srv/rails/sharetribe/client/npm-debug.log
npm ERR! Linux 4.4.0-21-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! code ELIFECYCLE
npm ERR! # postinstall: `cd client && npm install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the # postinstall script 'cd client && npm install'.
npm ERR! This is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cd client && npm install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/srv/rails/sharetribe/npm-debug.log`
What i realized is that My os causes that (Darwin aka. Mac OSX is the valid os)
Is my guess right? If yes, is there any way to install the platform on Ubuntu?
If not, how can i correct this error?
Thank you in advance!
You must install all the requirement within the same version
make sure your npm path is registered, you can use the following
export PATH="/Users/{YOUR_USER_NAME}/.npm-packages/bin/:$PATH"
now you can install nvm using the following code
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.9/install.sh | bash
and write the following to load the NVM and set the required version for sharetribe
export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && nvm alias default 7.8.0
Hope this would help

Facing Checksum issues on installing bower

D:\businessapp>npm install -g bower
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" "-g" "bower"
npm ERR! node v5.6.0
npm ERR! npm v3.6.0
npm ERR! shasum check failed for C:\Users\USER\AppData\Local\Temp\npm-4160-e9917
a21\registry.npmjs.org\bower\-\bower-1.7.7.tgz
npm ERR! Expected: 2fd7ff3ebdcba5a8ffcd84c397c8fdfe9f825f92
npm ERR! Actual: 399d3692e031c8527fa361cd93915f30cec3b0c2
npm ERR! From: https://registry.npmjs.org/bower/-/bower-1.7.7.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
Is it related to downloading something?
It was a checksum poblem. Found solution from here.
Solution is :
npm cache clean bower
Then run the install command again.

Trouble with installing Bower

I am trying to install Bower. Need Bower to install zurb Foundation. I am a newbie in this, a UX designer learning the frontend.
npm install - g bower
npm ERR! Error: not_found document not found: -
npm ERR! at RegClient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:308:14)
npm ERR! at Request._callback (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:246:65)
npm ERR! at Request.self.callback (/usr/local/lib/node_modules/npm/node_modules/request/request.js:236:22)
npm ERR! at Request.emit (events.js:98:17)
npm ERR! at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:1142:14)
npm ERR! at Request.emit (events.js:117:20)
npm ERR! at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:1096:12)
npm ERR! at IncomingMessage.emit (events.js:117:20)
npm ERR! at _stream_readable.js:944:16
npm ERR! at process._tickCallback (node.js:442:13)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Darwin 12.6.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-" "g" "bower"
npm ERR! cwd /Users/anandka
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/anandka/npm-debug.log
npm ERR! not ok code 0
Thanks in advance :)
You have a typo, you must remove the space before the g option.
npm is not finding package -, so:
npm install -g bower

Resources