npm-install

Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1

佐手、 提交于 2019-12-02 19:51:21
问题 i am trying to install all dependencies using npm install command, but while installing it i am getting error like below : ling source file ..\src\threaded_callback_invokation.cc) c:\applatest\applatest\node_modules\nan\nan.h(1478): warning C4996: 'node::MakeCallback': was declared deprecated (comp iling source file ..\src\threaded_callback_invokation.cc) [C:\appLatest\appLatest\node_modules\voicemeeter\node_modules \ffi\build\ffi_bindings.vcxproj] c:\users\alliancetek\.node-gyp\10.15.0

Two versions of same npm package in Node application

为君一笑 提交于 2019-12-02 18:59:49
I'm working on a CLI tool in NodeJS that uses another NodeJs package that we develop, which is an SDK. The thing is, we just published a V2 version of that SDK, and we want to offer the CLI user a legacy mode, so they can use either the first or second version of our SDK, like so: $ cli do-stuff #execute sdk v2 Or $ LEGACY_MODE='on' cli do-stuff #execute sdk v1 My problem is that I did not found any clean way to use two versions of the same dependency in my CLI. I tried to use npm-install-version package. It works well on my local environment, but after publishing my cli and doing npm install

How to handle script dependencies in angular 2 module published to npm

五迷三道 提交于 2019-12-02 18:03:29
问题 I have published an angular 2 library to npm recently.I have listed all the dependency scripts in the libraries package.json file. when I run npm install my-library all the dependency scripts are not installed.So, my question is how to install the dependency scripts while installing the library. 来源: https://stackoverflow.com/questions/47289167/how-to-handle-script-dependencies-in-angular-2-module-published-to-npm

Not compatible with your operating system or architecture: fsevents@1.0.11

孤者浪人 提交于 2019-12-02 17:49:24
I'm using Ubuntu 15.04. While running the following command: npm install fsevents I'm getting following error: npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.11 npm WARN tutorial@1.0.0 No repository field. Has anybody solved this? I was facing the same issue with this dependecy when building other application. Just for the sake of knowledge and to people who are not well used to NPM, and thus uncertain about how their applications will behave: Since fsevents is an API in OS X

npm install error - unable to get local issuer certificate

房东的猫 提交于 2019-12-02 17:40:18
I am getting an unable to get local issuer certificate error when performing an npm install: typings ERR! message Unable to read typings for "es6-shim". You should check the entry paths in "es6-shim.d.ts" are up to date typings ERR! caused by Unable to connect to "https://raw.githubusercontent.com/D efinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/es6-shim /es6-shim.d.ts" typings ERR! caused by unable to get local issuer certificate I have recently update to node 4 from a much earlier version and it sounds like node is much more strict when these kind of problems arise.

How to install only “devDependencies” using npm

和自甴很熟 提交于 2019-12-02 17:22:40
I am trying to install ONLY the "devDependencies" listed in my package.json file. But none of the following commands work as I expect. All of the following commands install the production dependencies also which I do not want. npm install --dev npm install --only=dev npm install --only-dev I cannot think of any more ways of telling the npm to install the devDependencies alone. :( Ahmed farag mostafa Check the NPM docs for install : With the --production flag (or when the NODE_ENV environment variable is set to production), npm will not install modules listed in devDependencies . The --only=

How do I deal with installing peer dependencies in Angular CLI?

两盒软妹~` 提交于 2019-12-02 17:14:58
I've found myself in an almost endless cycle of errors when trying to update my Angular CLI and NPM. Every time I update, I am met with WARN messages telling me to install peer dependencies (see below), but each time I install a dependency, I am met with more WARN messages. Is there a better way of handling this situation or does it seriously take hours? npm WARN @angular/animations@5.2.1 requires a peer of @angular/core@5.2.1 but none is installed. You must install peer dependencies yourself. npm WARN @angular/compiler-cli@5.1.0 requires a peer of typescript@>=2.4.2 <2.6 but none is installed

Error: `C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\MSBuild\\15.0\\Bin\\MSBuild.exe` failed with exit code: 1

巧了我就是萌 提交于 2019-12-02 13:58:50
i am trying to install all dependencies using npm install command, but while installing it i am getting error like below : ling source file ..\src\threaded_callback_invokation.cc) c:\applatest\applatest\node_modules\nan\nan.h(1478): warning C4996: 'node::MakeCallback': was declared deprecated (comp iling source file ..\src\threaded_callback_invokation.cc) [C:\appLatest\appLatest\node_modules\voicemeeter\node_modules \ffi\build\ffi_bindings.vcxproj] c:\users\alliancetek\.node-gyp\10.15.0\include\node\node.h(176): note: see declaration of 'node::MakeCallback' (compi ling source file ..\src

npm command issue

一世执手 提交于 2019-12-02 10:35:21
I have installed node js on my system. (Windows 7). I have set the environment path variable to "C:\Users\pUser\AppData\Roaming\npm\node_modules\npm" . There one .npmrc file in users folder. Which has values set for https_proxy,proxy,registry. I try to check the node version and npm version as follows: a. D:\Pooja Project\project-sd-develop-12>node -v output -->v6.9.4 b. D:\Pooja Project\project-sd-develop-12>npm -v (Does not show any result) It doesn't respond at all for npm command.Neither any output nor any error. ( It is not even showing any success or error message.) The screen shot

How to handle script dependencies in angular 2 module published to npm

混江龙づ霸主 提交于 2019-12-02 09:02:25
I have published an angular 2 library to npm recently.I have listed all the dependency scripts in the libraries package.json file. when I run npm install my-library all the dependency scripts are not installed.So, my question is how to install the dependency scripts while installing the library. 来源: https://stackoverflow.com/questions/47289167/how-to-handle-script-dependencies-in-angular-2-module-published-to-npm