npm-install

npm install eslint missing argument error

﹥>﹥吖頭↗ 提交于 2020-05-23 10:24:48
问题 Am trying to install eslint locally in a project folder. However installing as mentioned on https://eslint.org npm install eslint --save-dev returns the following error: npm ERR! Linux 4.15.0-70-generic npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "eslint" "--save-dev" npm ERR! node v8.10.0 npm ERR! npm v3.5.2 npm ERR! code EMISSINGARG npm ERR! typeerror Error: Missing required argument #1 npm ERR! typeerror at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3) npm

Error installing create-react-app with npm

本秂侑毒 提交于 2020-05-17 09:51:32
问题 When I try to install create-react-app (or nodemon) globally or even within a project, I get the following error. However, I can install other packages perfectly fine both globally and locally. I think it has something to do with the fact that both create-react-app and nodemon are run from the terminal rather than used within a project's code. I have already tried reinstalling nodejs and opening the terminal as administrator, but that did not work. $ npm i -D nodemon npm ERR! path C:\Users

How to fix timeout for packages on `npm install`?

不打扰是莪最后的温柔 提交于 2020-05-14 18:28:12
问题 When I run npm install it seems to work fine until part way installing packages. It seems to have no problem with the first half, but then after a while it will fail to be able to reach other packages. I just get the repeating errors, eg: npm http request GET https://registry.npmjs.org/react-hot-loader npm info attempt registry request try #3 at 6:43:34 AM npm http request GET https://registry.npmjs.org/react-tap-event-plugin npm info attempt registry request try #3 at 6:43:34 AM npm http

React app crashes on Heroku after using npm install

天大地大妈咪最大 提交于 2020-05-14 10:53:26
问题 My ReactJS app always crashes whenever I npm install any module. You can reproduce the problem by doing this on the terminal. create-react-app [name of project] cd [name of project] git init heroku git:remote -a [name of heroku app] git add . git commit -m "init" git push heroku master You will see that everything works fine, but try this afterwards. npm install react-dom (or any package/modules. Using --save also produces the same error) git add -u git commit -m "new module" git push heroku

npm throws EACCES error on installation of Angular CLI

ε祈祈猫儿з 提交于 2020-05-12 15:44:41
问题 I am unable to install Angular Cli globally through npm. I keep getting this error when I run npm install -g @angular/cli on macOS: npm ERR! node v6.9.2 npm ERR! npm v3.10.9 npm ERR! path /usr/local/lib/node_modules npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules' npm ERR! at Error (native) npm ERR! { Error: EACCES: permission denied, access '/usr/local/lib/node_modules' npm ERR! at Error (native)

“You seem to not be depending on ”@angular/core“.”

谁说胖子不能爱 提交于 2020-05-09 18:57:46
问题 When I try to build my project running the following command: ng build --environment=prod --aot=false --output-path="..." --base-href="..." You seem to not be depending on @angular/core . This is an error, however, I don't understand why because before it worked well. I tried to do this: npm install @angular/core But I get this error : error at Error (native) error { Error: EACCES: permission denied, chown '' error at Error (native) error errno: -13, error code: 'EACCES', error syscall:

Rails/NPM - Module build failed [ERR_PACKAGE_PATH_NOT_EXPORTED] for babel-loader

别来无恙 提交于 2020-04-18 03:50:08
问题 I have a Rails app and something recently changed in such a way that the rails server will start but when I load a page I get an NPM related error in the browser console. I did not set up NPM/VueJS in this app so need some help getting it running locally... Error: Module build failed (from ./node_modules/babel-loader/lib/index.js): Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main resolved in /Users/meltemi/rails/myapp/node_modules/@babel/helper-compilation-targets/package.json at

Rails/NPM - Module build failed [ERR_PACKAGE_PATH_NOT_EXPORTED] for babel-loader

霸气de小男生 提交于 2020-04-18 03:49:17
问题 I have a Rails app and something recently changed in such a way that the rails server will start but when I load a page I get an NPM related error in the browser console. I did not set up NPM/VueJS in this app so need some help getting it running locally... Error: Module build failed (from ./node_modules/babel-loader/lib/index.js): Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main resolved in /Users/meltemi/rails/myapp/node_modules/@babel/helper-compilation-targets/package.json at

Cypress installation fails with Proxy setup

落花浮王杯 提交于 2020-04-17 21:59:11
问题 I am trying to install cypress to my Angular 8 project. But when I try to install, I am getting the same error over and over again. I've added the proxy in my environment variables and also in my .npmrc file. Those are the proxy variables I have found on the company's wiki. But I'am still getting the same error. Does anyone knows what I am doing wrong here? 回答1: Please set up below environment variables before installing through command line. set HTTPS_PROXY=http://domain%5Cusername:password

Can't install express because npm install express error

最后都变了- 提交于 2020-04-16 03:17:12
问题 I'm receiving the following errors when trying to install express : npm ERR! code ERR_OSSL_PEM_NO_START_LINE npm ERR! errno ERR_OSSL_PEM_NO_START_LINE npm ERR! request to https://registry.npmjs.org/express failed, reason: error:0909006C:PEM routines:get_name:no start line 回答1: Type this command npm set registry http://registry.npmjs.org/ and after that try again npm install express as per this issue it is a certificate related problem 回答2: I also had a problem like that... and looking around