Skip to main content

All Questions

Tagged with
1 vote
1 answer
3k views

run multiple npm script from another directories by writing only one command

I have application with frontend and backend folders. With structure like this. application ├── frontend │ └── src │ └── build │ └── package.json └── backend └── src └── build └── ...
Tvseans's user avatar
  • 113
0 votes
1 answer
4k views

Installed redoc-cli npm package but on trying to run it, it says command not found. macOS 10.15.4

Here's what I have done. See the last line for the error: cb-machan@cb-machan bin % npm i redoc-cli > [email protected] postinstall /usr/local/bin/node_modules/styled-components > node ./...
jmach's user avatar
  • 41
1 vote
1 answer
912 views

node global npm packages broke somehow (mac)

So I have node installed together with npm. And used the official installer from the website. But when I install a package globally like "express" for example it won't be available in command line. ...
rufreakde's user avatar
  • 111
0 votes
1 answer
2k views

NPM not finding packages in http://registry.npmjs.org, on Mac only

I have been working on a Mac now for over a year and had to get back to some Node.js work. As I try to install packages using NPM (e.g. npm install -g apiconnect, npm install @cloudnative/health-...
Steven Ponessa's user avatar
0 votes
0 answers
393 views

sudo npm install command throw errors

sudo npm install always throws bunch or errors. I have done it with or without sudo, I tried it globally and locally, I did a clean uninstall and install both for the current version(11.13.0) and LTS(...
njavig's user avatar
  • 1
2 votes
1 answer
3k views

“npm config set prefix” fails on user owned directory in macOS Mojave

I am installing node on a clean macOS Mojave box using Homebrew. I am trying to set npm install directory in a user owned dir; the dir tools already exists and is owned by the user: npm config set ...
ClonedOne's user avatar
  • 195