npm-install

How to bundle dependencies in npm package?

痴心易碎 提交于 2019-12-08 07:37:17
问题 I have a npm package which reference an other local package. It has a structure like so. deploy typescriptapp.tgz references mydependency package.json app.js app.css typescriptapp package.json webapp My typescriptapp package.json has the following dependencies "dependencies": { "mydependency": "file:../references/mydependency" }, My webapp package.json has the following dependencies "dependencies": { "typescriptapp": "file:../deploy/typescriptapp-1.0.0.tgz" }, When I use npm pack it work fine

'submodule' appears to be a git command, but we were not able to execute it

我只是一个虾纸丫 提交于 2019-12-08 07:26:51
问题 I have cloned a git repository it's an Angular 7 ASP.NET app, everything is fine in the project but when I try to restore npm packages I get the error below. \Microsoft\TeamFoundation\Team Explorer\Git\cmd\git.EXE submodule update - q --init --recursive fatal: 'submodule' appears to be a git command, but we were not able to execute it. Maybe git-submodule is broken? at ChildProcess.exithandler (child_process.js:291:12) at ChildProcess.emit (events.js:182:13) at maybeClose (internal/child

Npm-Typescript installation

人盡茶涼 提交于 2019-12-08 06:01:56
问题 Tried to run ">npm install" in command line but ı got error like this cb() never called I tried; npm cache clear --force but it didnt work also ı tried to install typescript like this npm install -g typescript but same error occured npm -v :6.4.1 node -v:10.15.0 npm WARN tar ENOENT: no such file or directory, open 'C:\Users\KAL-MET KALİBRASYON\AppData\Roaming\npm\node_modules\.staging\typescript-443b24ed\bin\tsc' npm WARN tar ENOENT: no such file or directory, open 'C:\Users\KAL-MET

Find source (in package.json) of vulnerability (in package-lock.json)

做~自己de王妃 提交于 2019-12-08 05:30:02
问题 GitHub sent me an email today warning me of a vulnerability in my package-lock.json file. However, as I understand it, this file is generated during npm install from package.json . How can I find out which package (from package.json ) is linked to the vulnerable one (in package-lock.json )? Related questions: How to update package-lock.json 回答1: How can I find out which package (from package.json ) is linked to the vulnerable one (in package-lock.json )? (Answering my own question): The

Error installing vcremote on Mac OS X 10.11

梦想的初衷 提交于 2019-12-08 04:14:11
问题 I am trying to install vcremote with 'sudo npm install -g --unsafe-perm vcremote' but getting below error: /usr/local/bin/vcremote -> /usr/local/lib/node_modules/vcremote/bin/vcremote > thread-sleep@1.0.4 install /usr/local/lib/node_modules/vcremote/node_modules/thread-sleep > node-pre-gyp install --fallback-to-build node-pre-gyp ERR! UNCAUGHT EXCEPTION node-pre-gyp ERR! stack Error: Cannot find module 'internal/fs' node-pre-gyp ERR! stack at Function.Module._resolveFilename (module.js:472:15

npm install not compiling forked material-ui src into lib folder

落爺英雄遲暮 提交于 2019-12-08 03:47:39
问题 I am using material-ui in my app. I forked material ui and rolled back to pervious version and made some changes there, now I want to use the forked repo in my project so I used the following steps to install module from here: Go to fork's page Go to commits On the right side of the commit you want to use click Browse code On the browse code page right-click on Download ZIP button (or whatever it is that you are seeing) and copy . It should be something like this https://github.com

npm v6.4.1 not running `prepare` inside docker

♀尐吖头ヾ 提交于 2019-12-08 02:18:29
问题 I am trying to install a package inside of a docker container but the prepare script is not being run. Here is a Dockerfile which replicates the issue: FROM ubuntu:18.04 # Replace shell with bash so we can source files to use npm RUN rm /bin/sh && ln -s /bin/bash /bin/sh RUN apt-get update && apt-get upgrade -y RUN apt-get install wget git -y RUN wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash RUN source ~/.nvm/nvm.sh; nvm install v10.12.0; nvm use v10.12

npm ERR! Windows_NT 10.0.10586

谁说胖子不能爱 提交于 2019-12-08 01:20:31
问题 I was trying to do environment setup for Angular2 and for that I am getting below mentioned error while using command : npm install I am having Node versions : Node version is v6.7.0, npm version is 3.10.3 Is there any solution for the same? 回答1: Solved the issue. There was an issue with Windows System settings. Steps to solve the issue: Go to Windows' Settings >> Network & Internet >> Proxy Go to Automatic proxy setup >> Make 'Automatically detect settings' to off. Now this works for me.

npm install error ( npm install -g angular-cli ) in windows 10

空扰寡人 提交于 2019-12-08 00:13:36
问题 node -v v4.5.0 npm -v 5.0.1 Has anyone faced this kind of issue while installing angular-cli in windows 10? 回答1: Try the following: step 0: run this command npm uninstall -g @angular/cli npm cache clean step 1: delete this folder: C:\Users\%YOUR-USERNAME%\AppData\Roaming\npm step 2: uninstall Nodejs from Windows step 3: restart your PC step 4: install a fresh copy of Nodejs from here: https://nodejs.org/en/ step 5: install the CLI globally npm install -g @angular/cli@latest 回答2: try this : $

npm install openssl failed on windows 10

╄→尐↘猪︶ㄣ 提交于 2019-12-07 18:04:29
问题 I am running the following command in Node.js command window in Win10. It failed. anyone has ideas how to fix it? I am running Node.js v7.3.0 C:\Users\haozhang>npm install openssl C:\Users\haozhang `-- openssl@1.1.0 +-- mout@0.11.1 `-- nyks@2.31.3 +-- async@2.1.5 | `-- lodash@4.17.4 `-- mout@1.0.0 npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\haozhang\package.json' npm WARN haozhang No description npm WARN haozhang No repository field. npm WARN haozhang No README data npm