All Questions
695
questions
308
votes
17
answers
459k
views
How do I fix the npm UNMET PEER DEPENDENCY warning?
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:
+-- [email protected]
+-- UNMET ...
296
votes
34
answers
511k
views
ERROR in Cannot find module 'node-sass'
Config: macOS High Sierra, version 10.13.2, node:v8.1.2 npm:5.0.3
When I run npm start in my angularjs project I get this error:
ERROR in Cannot find module 'node-sass'
After this I run:
npm i node-...
74
votes
6
answers
48k
views
npm / yeoman install generator-angular without sudo
I tried to install generator-angularjs using Yo (Yoeman) without sudo:
npm install -g generator-angular
I get:
Error: EACCES, mkdir '/usr/lib/node_modules/generator-angular'
When I type in sudo yo,...
54
votes
9
answers
67k
views
What is causing 'grunt serve' to throw 'No Bower components found'?
I am starting out angular app with angular-fullstack in my Windows 7 box. I installed bunch of npm packages with -g options, including grunt-bower-install. I created the application first by running
...
43
votes
19
answers
215k
views
Error : getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
I am working on a corporate network.
Trying to install npm. But I'm getting this error again and again.
$ npm install
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe"...
38
votes
1
answer
53k
views
Workspace extension with invalid name (defaultProject) found
I am facing a problem when I try to run ng serve command, but I am getting the following error message:
Workspace extension with invalid name (defaultProject) found.
I tried npm install --legacy-peer-...
36
votes
8
answers
36k
views
cannot read property 'apply' of undefined gulp
I am trying to use the ng-factory generator to scaffold a new project to build an angularjs component. After the project has been created with the yo ng-factory command, I tried to run it using the ...
36
votes
7
answers
97k
views
npm ERR! git dep preparation failed when trying to install package.json
I'm trying to install package.json file using the command npm install, but I'm getting the following error.
npm ERR! git dep preparation failed
npm ERR! command C:\Program Files\nodejs\node.exe C:\...
34
votes
5
answers
34k
views
Cannot find module 'karma' while using grunt
I am using Yeoman toolkit to bootstrap an Angular web application. I've followed all the steps mentioned here. But still, apparently, grunt can not find the karma module. It spits out this error:
...
34
votes
2
answers
13k
views
Looking for a Dual Listbox with AngularJS and Bootstrap
I am looking for a component like this to be included in my project:
http://geodan.github.io/duallistbox/sample-100.html
I want to install it with npm.
The problem is that I tested some of the ...
30
votes
18
answers
262k
views
npm install error from the terminal
I am trying to install node in my mac..
i am getting the following error...
i downloaded the node from node site and ran that package...
can you guys tell me why i am facing that errror..when i do npm ...
29
votes
4
answers
43k
views
Difference between "npm run dev" and "npm start"
I am very new to Node and AngularJS.
Can I know the difference between npm run dev and npm start commands in node terminal?
24
votes
2
answers
43k
views
What is node_modules directory in AngularJS?
I am exploring AngularJS tutorial project and found it has node_modules directory inside, which size if 60 megabytes.
Does simple clientside javascript project really need so huge corpus of unknown ...
23
votes
7
answers
69k
views
'http-server' is not recognized as an internal or external command
After installing angular-seed project, i did the following steps:
Cloned the repository :
git clone https://github.com/angular/angular-seed.git
cd angular-seed
Then I ran npm install
at ...
21
votes
6
answers
27k
views
`yo angular` gives error: npm ERR! code ENOENT npm ERR! errno 34 (yes I have cleaned the cache and set .npmignore)
I tried to run yo angular in a new project directory, but it gave me the ENOENT error somewhere along the way. Yes I have looked at this similar question, but its solution doesn't work for me.
I ran ...
20
votes
2
answers
21k
views
Is this possible to install node-sass offline proxy
I'm trying to install node-sass module using npm but each time an error displayed about a problem in network configuration that's because i'm using proxy and private registry this is the error :
...
19
votes
5
answers
14k
views
How do I remedy "Error: Cannot find module 'child-process-close'"?
I was going about business as usual and about to checkout generator-angular-fullstack.
I got no red errors but a message at the end saying Error: Cannot find module 'child-process-close'. I tried ...
19
votes
3
answers
10k
views
bower ENOTFOUND Package App States=bower.json not found
How can I fix the following problem?
aaa@aaa $ bower install bower.json
bower bower.json#* cached git://github.com/Kalitte/app-states.git#0.6.9
bower bower.json#* validate 0....
19
votes
4
answers
25k
views
Install npm without Node.js
I am starting a ASP.NET Core Web Application using Visual Studio 2015 and I would like to use AngularJS 2 with TypeScript editing.
In order for this to work I need to install the npm Package Manager.
...
18
votes
3
answers
24k
views
Getting npm: command not found. How do I reinstall NPM when Node is already installed? Where did NPM go?
I'm starting Learn to Build Modern Web Apps with the AngularJS Tutorial and running into issues very early.
I have node installed:
/path/ang-news node -v
v0.10.26
I was using NPM earlier but was ...
18
votes
6
answers
81k
views
How do you install angular-cli for windows 7
I am trying to install angular-cli for windows. I know the command is npm install -g angular-cli, however once I run this command I then try to do ng new however I get an error saying "ng is not a ...
17
votes
3
answers
51k
views
NPM / Error: EACCES: permission denied, scandir [duplicate]
when i type "npm run build:prod"
build:prod
npm run build -- --configuration production --aot --optimization=false
i get this error :
> [email protected] build:prod
> npm run build ...
17
votes
2
answers
3k
views
Sharing code between AngularJS and Nodejs
What is the best way of sharing code between frontend and backend using javascript, specifically saying between nodejs and angularjs?
Thing is that we are using same enums and constant values such as ...
16
votes
5
answers
41k
views
npm install -g karma error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found
I've been looking into AngularJS and following its install steps, but I get an error running step #1:
npm install -g karma
Here is the full output:
Microsoft Windows [Version 6.2.9200]
(c) 2012 ...
16
votes
1
answer
16k
views
Using Gulp Zip to zip all the files in a folder
I am using gulp-zip to zip up my source files. So I have a main folder called FIFA which has other sub folders which might have more sub folders and files. In additon the FIFA folder also has files ...
15
votes
3
answers
13k
views
npm install generates huge list of errors
I must preface this question by saying that I am really new to Angular and Node. Following the directions from this Tuts+ tutorial, I cloned a sample Angular repo and then ran npm install. That ...
13
votes
1
answer
3k
views
NPM weekly downloads is zero [closed]
Why the weekly downloads are zero for all the packages in npm?new here Why this is in hold the question seems clear ?
If you can please open this issue,I don't know how to do it thanks here-npm
I'...
12
votes
7
answers
25k
views
"Port 4200 is already in use". Killing all the processes associated with 4200 did not work.
I'm trying to get angular running on my Mac OS X 10.11.3 El Capitan.
I installed nodeJS and npm. Through npm I installed angular-cli.
I created a new app via the command sudo ng new first-app
I ...
12
votes
4
answers
13k
views
provideRouter and RouterConfig not found in new @angular/router 3.0.0-alpha.3^
I am migrating an angular2 app to RC2 and trying to use the router's version 3 alpha.
I have followed the set up of the plunker given by the angular docs for routing
But i keep getting the following ...
12
votes
4
answers
11k
views
webpack-dev-server not reloading on html or sass change
My project has this structure:
\root
\webpack.config.js
\public
\ index.html
\ ...
\ css
\ directives
\ views
\ dist (webpack output)
\app.js
...
12
votes
2
answers
5k
views
cmd prompt freezes until I hit CTRL+C, then continues as normal
I'm having a weird issue.
I'm trying to set up a project I downloaded. The project is a web application with server components in Node.js and client components in Angular.
When I do things like npm ...
11
votes
1
answer
1k
views
Angular component library - image references in templates
I have an npm package that has a number of angular components. In their templates, they reference images. If I copy the images to my application's images directory, the references resolve, but this ...
11
votes
2
answers
46k
views
How to solve Odd numbered Node.js versions will not enter LTS status and should not be used for production node:16120 UnhandledPromiseRejectionWarning
i tried creating a new angular application ng new app and i got this error
Node.js version v11.0.0 detected.
Odd numbered Node.js versions will not enter LTS status and should not be used for ...
10
votes
2
answers
7k
views
$elem.hide is not a function in angular-datatable
I want to use pagination plugin angular-datatable .I installed it with bower but it does n't work.It gives the below error
TypeError: $elem.hide is not a function
at Object.showLoading (...
10
votes
2
answers
7k
views
How to create a npm script to run several commands to run some tests?
When I run the e2e tests for my angularjs application, I need to run following commands in different shell session:
// start the selenium server
webdriver-manager start
// start a http server to ...
10
votes
2
answers
12k
views
Error in npm install command
Got an error at the end of npm install command.
angular#1.2.1 bower_components\angular
npm ERR! peerinvalid The package karma-requirejs does not satisfy its siblings'
peerDependencies requirements!
...
9
votes
2
answers
7k
views
Angular 2 issue: typings: command not found
So this might come off as a really basic question but it has been bugging me for days now and haven't actually found a solution.
I'm installing typings from the command line with npm and it appears ...
9
votes
3
answers
3k
views
No matching version found for require-from-string@^1.1.0 [duplicate]
Dependencies for npm project:
"dependencies": {
"angular-chart.js": "1.1.0",
"angular-cookies": "1.5.7",
"angular-ui-bootstrap": "2.4.0",
"angular-ui-grid": "4.0.5",
"checklist-...
8
votes
3
answers
13k
views
how to install underscore.js in my angular application?
I used yo-angular to generate my angularjs template with bootstrap/grunt/bower. I also want to use underscore in the app:
npm install underscore --save-dev
In the MainCtrl I am calling underscore.js ...
8
votes
3
answers
6k
views
.NET Core 2.0 & Angular Initial app build fails - Can't find python followed by JavaScript Runtime Error
I am on VS 2017 and .NET Core 2 on Win 7.
Tried creating a fresh app in .NET Core 2.0 and Angular using these instructions.
Running latest versions of node and npm :
node -v > v10.1.0
npm -v > ...
8
votes
1
answer
8k
views
Is there an official nuget package for Angular 2?
I'm currently working in a work environment where I do not have access to npm / node. The npm download location is actually blocked so I can't get any packages.
I want to build an Angular 2 site. As ...
8
votes
3
answers
12k
views
Can I install Angular Material library without Bower or NPM?
I want to install the Angular Material library in a project, but I am behind a corporate firewall and even configuring the proxy doesn't work, it seems the proxy blocks certain types of files. Is ...
7
votes
2
answers
8k
views
Error: Could not find chromedriver while following angularjs official tutorial
At first I have to say this is my first touch with angularjs and node.js so this will be probably a stupid issue, but I want to learn to work with angularjs so I followed this tutorial https://docs....
7
votes
3
answers
11k
views
npm start returns error 127 while setting up angular-seed application
I am trying to setup angular-seed application.
I have installed nodejs with sudo apt-get install nodejs
Installed npm with sudo apt-get install npm
Installed bower with sudo apt-get install bower -...
7
votes
1
answer
14k
views
npm scoped packages and private registry
Our company has set up a private npm registry for our packages. We are trying to set up an angular2 application and all angular packages that are included (from the angular2 tutorial page) are scoped. ...
7
votes
2
answers
1k
views
node_modules breaks build in Visual Studio
Working to add Angular (v4) to an existing ASP.NET MVC 4 application. One of the projects it has includes Selenium Web Driver which has a web.config file included.
node_modules\selenium-webdriver\...
7
votes
1
answer
32k
views
How to execute AngularJS in Visual Studio Code
I am working with ASP.NET for last few years, so I'm comfortable working with MVC,JavaScript, Visual studio etc.
Now I have a small project that I need to take care of. It was developed in AngularJS. ...
7
votes
3
answers
14k
views
sh: 1: concurrent: not found while npm start
I am trying to setup angular2 on my local machine, I installed node and npm, after installing npm when I do 'npm start' I am getting below error
root@sameer-Vostro-2520:/home/sameer/angular2/angular-...
6
votes
4
answers
26k
views
How can I install angular version 1.1.5 via npm
I've tried:
npm install [email protected]
But it give me an error:
npm ERR! Error: version not found: 1.1.5 : angular/1.1.5
How can I install it?
6
votes
2
answers
2k
views
Bower install stuck at the json output: "message": "Answer",
There are two issues that I am facing basically, while using Intellij
I dont understand why the output of bower install is a bunch of json messages. When I do bower install in my Webstorm, I see ...