tagged [npm]
NPM warn message about deprecated package
NPM warn message about deprecated package I am installing a module globally and NPM says > "npm WARN deprecated lodash@1.0.2: lodash@
ERROR in Cannot find module 'node-sass'
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: After this I run: Now I get thi...
- Modified
- 8 Jan at 09:59
SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 Since a few days I got an issue with Mac OS High Sierra 10.13.3 : When I run a `git clone` like `git clone github.com/xxx.git failed` it ...
Node.js - SyntaxError: Unexpected token import
Node.js - SyntaxError: Unexpected token import I don't understand what is wrong. Node v5.6.0 NPM v3.10.6 The code: The error: ``` SyntaxError: Unexpected token import at exports.runInThisContext (vm...
- Modified
- 15 Nov at 16:9
Is there a way to force npm to generate package-lock.json?
Is there a way to force npm to generate package-lock.json? I deleted it by accident and have made many changes to `package.json` since. An `npm install` or `npm update` do not generate `package-lock.j...
- Modified
- 10 Jun at 18:41
nvm is not compatible with the npm config "prefix" option:
nvm is not compatible with the npm config "prefix" option: I am trying to run another NodeJS version with `nvm` but getting this error: ``` $ nvm use v4.2.4 nvm is not compatible with the npm config "...
How do you prevent install of "devDependencies" NPM modules for Node.js (package.json)?
How do you prevent install of "devDependencies" NPM modules for Node.js (package.json)? I have this in my package.json file (shortened version): I am using NPM version 1.1.1 on Mac 10.6.8. When I run ...
Nodejs cannot find installed module on Windows
Nodejs cannot find installed module on Windows I am learning nodejs at the moment on Windows. Several modules are installed globally with npm.cmd, and nodejs failed to find the installed modules. Take...
The command "npm run build -- --prod" exited with code 1 error
The command "npm run build -- --prod" exited with code 1 error I'm developing an Asp.Net Core 2 and Angular 5 project in visual studio 2017. When I'm going to publish my project then the error '' sho...
- Modified
- 4 Apr at 05:37
Installing Bower on Ubuntu
Installing Bower on Ubuntu I'm trying to install Bower on XUbuntu 13.10, following the instructions on the Bower home page, after doing `sudo apt-get install npm` and `sudo npm install -g bower` I get...
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Nuwanst\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Nuwanst\package.json' I just want to install socket.io to my project which is located on 3.chat folder. But when I run following comma...
- Modified
- 6 Aug at 11:38
Downgrade npm to an older version
Downgrade npm to an older version I tried updating `npm` to see if it would solve some dependency problems we were having, and now I want to downgrade to the version the rest of the development team i...
- Modified
- 12 Aug at 14:9
When I run `npm install`, it returns with `ERR! code EINTEGRITY` (npm 5.3.0)
When I run `npm install`, it returns with `ERR! code EINTEGRITY` (npm 5.3.0) I am getting this error while running `sudo npm install`. On my server, npm was installed earlier. I've tried to delete the...
How to clean node_modules folder of packages that are not in package.json?
How to clean node_modules folder of packages that are not in package.json? Assume I install project packages with `npm install` that looks into `package.json` for modules to be installed. After a whil...
npm ERR! network getaddrinfo ENOTFOUND
npm ERR! network getaddrinfo ENOTFOUND I am getting `npm ERR! network getaddrinfo ENOTFOUND` error while trying to install any package using NPM. I know there are numerous threads on the same issue bu...
ExpressJS - throw er Unhandled error event
ExpressJS - throw er Unhandled error event I created expressjs application using the following commands: When I run the application with: `node app.js`, I have the following errors: ``` events.js:72 ...
How to make the webpack dev server run on port 80 and on 0.0.0.0 to make it publicly accessible?
How to make the webpack dev server run on port 80 and on 0.0.0.0 to make it publicly accessible? I am new to the whole / world so apologies if my question sounds silly. So I am playing around with [re...
- Modified
- 21 Jun at 00:25
How to include scripts located inside the node_modules folder?
How to include scripts located inside the node_modules folder? I have a question concerning best practice for including `node_modules` into a HTML website. Imagine I have Bootstrap inside my `node_mod...
- Modified
- 25 Oct at 15:51
Running bash scripts with npm
Running bash scripts with npm I want to try using npm to run my various build tasks for a web application. I know I can do this by adding a `scripts` field to my `package.json` like so: This gets unwi...
npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY I am trying all possible ways to create a React application. I have tried Maven, and now I am trying `create-react-app` from Facebook Incubators. When I...
- Modified
- 5 Oct at 09:3
How to use executables from a package installed locally in node_modules?
How to use executables from a package installed locally in node_modules? How do I use a local version of a module in `node.js`. For example, in my app, I installed coffee-script: This installs it in `...
- Modified
- 25 Mar at 11:47
nvm keeps "forgetting" node in new terminal session
nvm keeps "forgetting" node in new terminal session ## Upon using a new terminal session in OS X, nvm forgets the node version and defaults to nothing: `$ nvm ls`: I have to keep hitting `nvm use v.0....
How can I change the version of npm using nvm?
How can I change the version of npm using nvm? I've been using NVM to install the latest versions of Node.js for my Node.js work. It works totally fine for installing separate versions and switching b...
How to start http-server locally
How to start http-server locally I cloned [angular seed](https://github.com/angular/angular-seed) which is using node `http-server` and it is working perfectly using following configuration. > Command...
- Modified
- 10 Jul at 15:15
npm check and update package if needed
npm check and update package if needed We need to integrate Karma test runner into TeamCity and for that I'd like to give sys-engineers small script (powershell or whatever) that would: 1. pick up des...
- Modified
- 2 Jan at 15:56