npm-install

How to make Azure nodejs webapp re-run npm install?

▼魔方 西西 提交于 2019-12-11 02:21:31
问题 I'm running a Node webapp on Azure. I deploy the app using the "local git" method. Every time I make changes to my source, commit, and then deploy with git push azure master , the code on the site is updated, as expected. But one of my recent changes included adding a new package to my package.json file. Now when I deploy, my files are updated, but azure doesn't seem to re-run npm install , and the new modules are not installed. This means that the app doesn't start: when my code calls

Angular - CodeAnywhere - You seem to not be depending on “@angular/core”. This is an error

佐手、 提交于 2019-12-11 00:14:44
问题 Hey im trying to install Angular Cli but i keep getting failed package install. Then i try to start the server and it says You seem to not be depending on "@angular/core". This is an error. 回答1: Check if you're in the project folder in terminal 回答2: first check the node node -v and npm are install correctly npm -v then try again with npm install -g npm@latest then you add it in ts file const _core = require("@angular/core"); 回答3: First ensure you have @angular/core install, else run: npm

Install JSBin locally

岁酱吖の 提交于 2019-12-10 23:45:54
问题 I wanted to follow this page to run JSBin locally. I have installed xcode 8.2 in my mac. Now, npm -v returns 3.10.9 ; node -v returns v7.2.1 . After git clone git@github.com:remy/jsbin.git and cd jsbin , I modified package.json such that it has "memcached": "2.2.2" inside (see this thread), then npm install returns /Users/softtimur/Startup/WebProjects/tmp/jsbin$ npm install npm WARN deprecated jade@1.4.2: Jade has been renamed to pug, please install the latest version of pug instead of jade

NPM dependencies shared by dependencies

青春壹個敷衍的年華 提交于 2019-12-10 23:34:45
问题 On npm 3.3.12 (node 4.2.2), the following thing happen: I run npm install in a project where one of the dependencies in my project is also a dependency of one of the other dependencies. For instance: My project depend on PackageA and PackageB PackageA also depend on PackageB Both My project and PackageA depend on the same verison of PackageB Then, I run npm update in my prroject. The NPM output lists: PackageB@x.x.x node_modules/PackageB -> node_modules/PackageA/node_modules/PackageB So then

npm install xml2json error

我怕爱的太早我们不能终老 提交于 2019-12-10 18:13:21
问题 getting error while running npm install xml2json in windows cmd resolved python & .net dependency but stuck in "fatal error C1060: compiler is out of heap space" cannot install in any node js project throughout my windows system npm install simple-xml2json & parallel-xml2json are working fine >npm install xml2json --save request npm WARN package.json @ No description npm WARN package.json @ No repository field. npm WARN package.json @ No README data npm WARN package.json @ No license field. -

Install ignored files with NPM

无人久伴 提交于 2019-12-10 15:59:13
问题 The package is listed in project dependencies: "name": "project", "devDependencies": { "package": "*" } Some of the files in installed package are ignored by blacklisting ( .npmignore ) or by whitelisting: "name": "package", "files": [ "lib/", "index.js", "LICENSE", "README.md" ], Forking it and changing ignore settings is not an option for me. I would prefer to have it in node_modules and require it like normal package, and doing things like git clone in npm install script looks like a

'typings' is not recognized as an internal or external command, operable program or batch file

↘锁芯ラ 提交于 2019-12-10 15:18:43
问题 Summary I'm trying to install typescript typings for my web app, but I can't get command prompt to recognize the typings command. The Problem typings install throws the following error: 'typings' is not recognized as an internal or external command, operable program or batch file. Details When I run npm i typings -g , the console tells me the module has been installed. But when I look in my global npm directory, there is no typings file. C:\gitdev\MyWebApp\src\main\webapp\myUI>npm i typings

react-native: Command `run-android` unrecognized. Maybe caused by npm install

本小妞迷上赌 提交于 2019-12-10 13:43:11
问题 Recently I started getting this issue, when I install a react-native package (eg: react-navigation ) into my project, a whole bunch of packages are been removed (including react, react-native i think). And then when i try to run command " run-android ", it says it doesn't recognize. I recently updated to the latest npm and react-native-cli . Is it something wrong with " npm install "? or react-native ? node version: 8.1.2 <br/> react-native-cli: 2.0.1 <br/> react-native: 0.45.1 <br/> react

Non-deterministic behavior of npm

安稳与你 提交于 2019-12-10 13:38:23
问题 After running npm install , I have noticed that sometimes package-lock.json changes. This section: "dependencies": { "websocket": { "version": "git://github.com/frozeman/WebSocket-Node.git#6c72925e3f8aaaea8dc8450f97627e85263999f2", "from": "git://github.com/frozeman/WebSocket-Node.git#6c72925e3f8aaaea8dc8450f97627e85263999f2", "requires": { "debug": "^2.2.0", "nan": "^2.3.3", "typedarray-to-buffer": "^3.1.2", "yaeti": "^0.0.6" } } } } Changes to this: "dependencies": { "websocket": { "version

Gitlab CI does not execute npm scripts

江枫思渺然 提交于 2019-12-10 13:19:45
问题 I try to make a CI script running on a gitlab runner. What I want is simple: First the npm install command should be executed to fetch all the required npm packages. After that the npm test and npm run build should be executed. The .gitblab-ci.yml script looks as follow: before_script: - cd my/folder/ - npm install --silent stages: - test - build run_tests: script: - npm test stage: test build: script: - npm run build stage: build Unfortunatly only the npm install gets executed twice. And