I am having a lot of trouble using npm
. Almost at each install I get issues
npm ERR! Maximum call stack size exceeded
or
npm ERR! syscall spawn
npm ERR! foobar@1.0.0 lint: `eslint --ext .js,.vue src test/unit test/e2e/specs "--fix"`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the foobar@1.0.0 lint script.
or
$ sudo npm install -g hpack.js
npm ERR! path /usr/lib/node_modules/.staging/hpack.js-6a009775
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall rename
npm ERR! Error: EACCES: permission denied,
or
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/usr/lib/node_modules/vue-cli/node_modules/download-git-repo' -> '/usr/lib/node_modules/vue-cli/node_modules/.download-git-repo.DELETE'
or
$ npm run dev
> foobar@1.0.0 dev /home/ycr/my-project
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
sh: 1: webpack-dev-server: not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
Often I can solve the problem by uninstalling and reinstalling the package or simply manually installing the missing dependencies, but it is painful.
sudo npm uninstall -g vue-cli
sudo npm install -g vue-cli
But it looks very unstable and I don't understand why I get all these issues.
$ node -v
v8.10.0
$ npm -v
5.7.1
$ uname -a
Linux CE589UT 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux
My goal is to be able to install packages such as Angular, vue.js, node-red, ... to test them. Until now each time I have to use npm
I get errors.
Any clues or ideas to troubleshot these instabilities?