npm-install

Why npm installed lots of unexpected modules?

白昼怎懂夜的黑 提交于 2019-12-12 04:24:27
问题 I'm using laravel-5.1,with this package.json { "private": true, "devDependencies": { "gulp": "^3.8.8" }, "dependencies": { "laravel-elixir": "^4.0.0", "bootstrap-sass": "^3.0.0" } } under root directory,I use npm install command under project root to install laravel-elixir and bootstrap-sass . After npm installation finished, I found there were more than 30 node modules under my node_modules diretory,and lots of .cmd files under project root! Now I have used git to rollback my project,how to

Ionic 2 Installation Fails - ENOENT, EPERM in installation on windows 10

纵饮孤独 提交于 2019-12-12 03:49:48
问题 I'm getting the following error ENOENT, EPERM while installing ionic on Windows 10 following instructions in http://ionicframework.com/docs/v2/getting-started/installation/ npm config C:\WINDOWS\system32>npm config list ; cli configs user-agent = "npm/3.10.8 node/v6.9.1 win32 x64" ; builtin config undefined prefix = "C:\\Users\\developer\\AppData\\Roaming\\npm" ; node bin location = C:\Program Files\nodejs\node.exe ; cwd = C:\WINDOWS\system32 ; HOME = C:\Users\developer ; "npm config ls -l"

npm install fails on FAT32 sile system

南笙酒味 提交于 2019-12-12 03:05:32
问题 I'm trying to run npm install in a folder on my FAT32 drive, and this is the error I'm getting: $ npm install /work/sites/project └── (empty) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm ERR! Linux 4.8.0-27-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm"

Getting “ReferenceError: jQuery is not defined” for package install on npm

陌路散爱 提交于 2019-12-12 02:25:45
问题 I have published a jRCarousel jQuery plugin to npm . I initially got the error that name can not contain capital letters, so I have changed that in package.json and then published it got published but on npm website when I try the "Try it out" option I get the "ReferenceError: jQuery is not defined" error. Not sure why is the error as I have specified the dependency in package.json. Also if there are any changes to only package.json and not to any other files in package or module , how can I

npm not recognized as internal or external command

社会主义新天地 提交于 2019-12-11 23:46:58
问题 I am getting npm not recognized as internal or external command. User variable Path is set to : %AppData%\npm;C:\Program_Files\nodejs\node_modules\npm;C:\Program_Files\nodejs; I have tried with npm version 5.0 and 3.10.8 . Error screenshot 回答1: I solved by below steps: 1.run echo %comSpec% in command prompt or terminal 2.Check whether below entry exists C:\WINDOWS\SysWOW64\cmd.exe 3.Then remove above entry from system environment variable. 来源: https://stackoverflow.com/questions/50253040/npm

Storing multiple NPM libraries in single Git repo

故事扮演 提交于 2019-12-11 19:46:40
问题 We can reference NPM deps on Github like so: "dependencies":{ "foo":"github.com/org/root#commit" } But I have a Git repo with multiple NPM libraries in it, like so: root/ nodejs/ foo/ package.json bar/ package.json is there a way to install foo from this Github repo directly? Something like this? "dependencies":{ "foo":"github.com/org/root/nodejs/foo#commit" } I tried installing using that url, and it didn't work, I got this error: npm ERR! code ENOPACKAGEJSON npm ERR! package.json Non

Issue with webpack and npm package installation in ubuntu

雨燕双飞 提交于 2019-12-11 17:57:42
问题 I was suddenly having an issue in my project like this. It was repeated and crashed my chrome: So, I downgraded some of my packages and I downgraded my npm to 6.6.0 which was stable for my project. The main problem started after that. I removed the node_modules folder and when I tried to sudo npm install [because npm install says permission issue] it started showing these errors: npm info it worked if it ends with ok npm verb cli [ '/usr/bin/node', npm verb cli '/data/data/com.termux/files

Error while executing the “npm install” command in ubuntu 18.04 LTS

倾然丶 夕夏残阳落幕 提交于 2019-12-11 17:33:01
问题 I have been trying to install and run my first hyperledger fabric application (http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html) but have been encountering the following issue everytime I run the "npm install" command. Please let me know what is the solution to resolve this issue. The error is as follows: I have tried deleted .node-gyp, .npmrc folder from $HOME and restarting the computer.Nothing helped. 回答1: Faced a similar issue in Centos 7 and resolved by installing

Error installing npm package on Azure app service

青春壹個敷衍的年華 提交于 2019-12-11 17:21:50
问题 Was able to successfully build better-sqlite3 and integer@1.0.1 with npm install on Linux and Windows 7 without a problem. However have issue on Azure. Have following error: > npm install integer -dd �[37;40mnpm info it worked if it ends with ok �[37;40mnpm �[34;40mverb cli [ 'D:\\Program Files (x86)\\nodejs\\8.9.0\\node.exe', �[37;40mnpm �[34;40mverb cli 'D:\\Program Files (x86)\\npm\\5.5.1\\node_modules\\npm\\bin\\npm-cli.js', �[37;40mnpm �[34;40mverb cli 'install', �[37;40mnpm �[34;40mverb

Cannot install angular/cli with npm

扶醉桌前 提交于 2019-12-11 16:55:00
问题 I am attempting to install angular cli. I have npm version 5.6.0 and node v8.11.1 installed. Here's what I did in the Command Prompt (admin): justine:~ justine$ sudo npm install -g @angular/cli /Users/justine/.node_modules_global/bin/ng -> /Users/justine/.node_modules_global/lib/node_modules/@angular/cli/bin/ng > fsevents@1.1.3 install /Users/justine/.node_modules_global/lib/node_modules/@angular/cli/node_modules/fsevents > node install [fsevents] Success: "/Users/justine/.node_modules_global