Questions tagged [npm]

node package manager is a package manager for node.js

90 questions
32
votes
4 answers

Is there an option to install an npm package without dependencies?

I'm attemting to modify an npm package with multiple dependencies. As such npm install -g . takes a long time to execute. Do I have other options besides removing the dependencies from packages.json?
Justin Dearing
  • 1,391
  • 3
  • 13
  • 26
24
votes
3 answers

How to install npm packages in NixOS?

In NixOS, I installed the package yarn as usual by running $ nix-env -i yarn. Now I am attempting to run yarn via $ yarn start. But this leads me to the following error. $ yarn start yarn start v0.20.3 $ webpack-dev-server --env dev sh:…
mherzl
  • 1,409
  • 2
  • 18
  • 31
11
votes
1 answer

Why is permission denied for npm start using node-dev?

I am trying to start a node.js application with on a low permissions user. All the files I know of are owned by the correct user and have permissions set reasonably well. I'm trying to use a script file to do this. I invoke the script with this…
Patrick M
  • 243
  • 1
  • 3
  • 8
6
votes
1 answer

Setting permissions for specific programs to run as guest

How do I set permissions for an HTTP server (nodejs) to run programs in /usr/local/share/npm/ safely? My use case is to setup my OSX box to run cloud9 and use titanium to build iOS apps for iPhone/iPad. I got cloud9 running and am able to build an…
6
votes
1 answer

When debian bugfix will appear on my system?

On my Debian 10 I've ran into same problem with npm as many people before: npm does not support Node.js v10.15.2 Searching for the fix I've found that the bug was fixed in debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=904422 But I have…
midlan
  • 163
  • 4
6
votes
1 answer

freeBSD: Atom Text Editor

Per Atom text editor build instructions for freeBSD: pkg install node pkg install npm pkg install libgnome-keyring npm config set python /usr/local/bin/python2 -g Then: git clone https://github.com/atom/atom cd atom script/build This is on a vbox…
rob
  • 69
  • 2
4
votes
2 answers

nodejs deb package seems to miss npm

I did on Debian testing sudo apt install nodejs but I'm missing npm. $ node -v v8.11.2 $ npm -v bash: npm: command not found What did I miss?
user3523406
  • 323
  • 2
  • 9
  • 15
4
votes
2 answers

Trying to install debian package npm, makes apt-get to remove libssl-dev

:~/$ uname -a Linux hostname 4.9.0-4-rt-amd64 #1 SMP PREEMPT RT Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux I think that I have a clear dependency tree without broken packages. :~/$ sudo apt-get check Reading package lists... Done Building…
chefarov
  • 330
  • 3
  • 14
4
votes
1 answer

Is it safe to install software globally with npm?

The node.js package manager, npm, has an option to install packages globally. Since distributions typically have their own package manager, is it safe to use the global option? Could npm packages conflict with distribution packages and cause errors…
drs
  • 5,363
  • 9
  • 40
  • 69
3
votes
1 answer

How to install npm on my debian stretch?

nodejs installed on my debian stretch. nodejs -v v4.8.2 With same way ,i want to install npm. sudo aptitude install -f npm The following NEW packages will be installed: libjs-inherits{a} node-abbrev{a} node-ansi{a} node-ansi-align{a} …
showkey
  • 79
  • 23
  • 67
  • 128
3
votes
1 answer

Is there a way to package npm dependencies into a .deb package for offline deployment?

I've created a very simple debian .deb package that deploys my node-red project to the correct directory structure on a target machine. I also have a number of python/debian dependencies, which I've added to my debian/control file. Everything up…
root
  • 31
  • 2
3
votes
2 answers

Should I install npm in Kubuntu?

I am using Kubuntu. I am looking into installing a plugin to help in javascript. This seems to be good jshint but it mention npm install What is this? My understanding is that in Kubuntu I should only use sudo apt-get to install packages and not yum…
Jim
  • 9,750
  • 15
  • 57
  • 84
2
votes
0 answers

npm issues with uglify-js

I'm trying to use node.js to run a project on my Raspberry Pi (following this guide: http://blog.donaldderek.com/2013/06/build-your-own-google-tv-using-raspberrypi-nodejs-and-socket-io/ ) and I've run into a bit of a problem with npm. When I try npm…
user1002973
  • 121
  • 1
2
votes
1 answer

Unable to run npm install with version specification

I am trying to run a simple npm install with zsh terminal. npm install --save-dev @typescript-eslint/eslint-plugin@^4.0.0 zsh: no matches found: @typescript-eslint/eslint-plugin@^4.0.0 It appears to be because of the @ in the name of the node…
StuartM
  • 123
  • 3
2
votes
1 answer

Deb build-dependencies in custom locations

I have a debian package with npm build dependency, e.g, the control file contains the line: Build-Depends: debhelper (>= 11), npm Building this package works fine if I have installed nodejs using apt-get, which creates the file /usr/bin/npm. The…
user2563661
  • 233
  • 1
  • 4
1
2 3 4 5 6