npm-install

Ionic 2 installation issues

浪子不回头ぞ 提交于 2019-12-25 05:36:32
问题 I am trying to use Ionic 2 on Windows 7 x64 bit and got stuck when using ionic start command. I have tried to read tutorials and installation instructions but got no luck. Here's the details of my problem: Found depreciation warnings during cordova and ionic installation: https://postimg.org/image/vf3qn8z9b/ Then it shows errors using following command in ionic: ionic start newProject sidemenu --v2 https://postimg.org/image/4vz80prq5/ context of my npm-debug.log: 9284 warn optional SKIPPING

Why does `npm install` add / remove caret (^) to / from version numbers?

拥有回忆 提交于 2019-12-24 19:29:39
问题 I have a project that I work on with two different laptops. Sometimes I add extra packages to my project, so I have to use npm install <package-name> (duh). When I do that, I git push up the new package.json and package-lock.json files, and when I switch computers I have to git pull those changes, then run npm install again to get that package onto the other computer. I recently noticed and started caring that one laptop kept adding carets ( ^ ) to the beginning of every package version

Emberjs / ember-browserify : “X is not a constructor”?

血红的双手。 提交于 2019-12-24 10:27:00
问题 This question relates to my earlier question. Trying to use howler.js (https://github.com/goldfire/howler.js#documentation) in a Controller. There is no addon for Howler but it exists as a npm package. I've followed the instructions to use ember-browserify and then started the ember dev server ( ember s ). The import looks like this : import Howl from "npm:howler"; I've also tried this : import {Howl as Howl} from "npm:howler" ; and this : import {Howl} from "npm:howler" ; In all cases when I

Force npm download from private registry

老子叫甜甜 提交于 2019-12-24 10:25:36
问题 In my nodejs project I had to modify 4 of the node modules and upload them to our private corporate registry so the project will download the modified versions during builds. I did this by changing the resolved field in package-lock.json for each dependency from our virtual npm registry which forwards downloads to the public npm registry to our private registry. This is working for 3 out of the 4 modules, however 1 module, phantomjs-prebuilt , will not download the one I uploaded. When I view

Unable to install electron from npm

风流意气都作罢 提交于 2019-12-24 09:06:16
问题 I am trying to install electron on my ubuntu 16.04, i already have a working nodejs and npm. But suddenly I am unable to install modules by type: sudo npm install electron Below is the response am getting: npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EAI_AGAIN: request to https://registry.npmjs.org/electron failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org:443 npm WARN registry Using stale package data from https://registry.npmjs.org/ due

npm unable to revert to previous version of node package (angular-cli)

雨燕双飞 提交于 2019-12-24 07:36:25
问题 The current version of the node package angular-cli has a few bugs, so I want to revert to a previous verison: 1.0.0-beta.28.3. The question is what steps do I need to do to revert to a previous version of a node package. I run: npm uninstall angular-cli --save -g npm cache clean angular-cli npm i --save -g angular-cli@1.0.0-beta.21 After doing this, I reinstall and have tried opening a new git console. However, ng --version still returns: version 1.0.0-beta.28.3 回答1: If you're using Angular

Installing packages from github npm registry - auth error 401

烂漫一生 提交于 2019-12-24 06:38:29
问题 I have just published a private package on GitHub, trying to figure out how it should be working. now I'm trying to install it in another project. I authenticated with npm login --registry=https://npm.pkg.github.com with an access token that has write:packages , read:packages and repo privileges. While trying to run npm install https://npm.pkg.github.com/@orgname/package-name I get an error message: npm ERR! code E401 npm ERR! Unable to authenticate, need: Basic realm="GitHub Package Registry

Unmet WebPack peer dependencies issues

南笙酒味 提交于 2019-12-24 06:13:32
问题 So i have a wierd issue, i am trying to do an npm install on a react/redux boilerplate solution i found on github however i am getting some unmet peer dependency issues. The super wierd thing though is that the way I read it, none of these are an issue... what am i missing? npm ERR! node v4.4.5 npm ERR! npm v2.15.5 npm ERR! code EPEERINVALID npm ERR! peerinvalid The package webpack@2.1.0-beta.21 does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer babel

Unmet WebPack peer dependencies issues

丶灬走出姿态 提交于 2019-12-24 06:13:19
问题 So i have a wierd issue, i am trying to do an npm install on a react/redux boilerplate solution i found on github however i am getting some unmet peer dependency issues. The super wierd thing though is that the way I read it, none of these are an issue... what am i missing? npm ERR! node v4.4.5 npm ERR! npm v2.15.5 npm ERR! code EPEERINVALID npm ERR! peerinvalid The package webpack@2.1.0-beta.21 does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer babel

Cannot find module @restart/context/forwardRef during npm build

半腔热情 提交于 2019-12-24 06:05:55
问题 I recently started having a problem with npm build after upgrading to newer version of react-bootstrap ( 1.0.0-beta.6 ). Creating an optimized production build... Failed to compile. Cannot find module: '@restart/context/forwardRef'. Make sure this package is installed. ./node_modules/react-bootstrap/es/ThemeProvider.js You can install this package by running: yarn add @restart/context/forwardRef. I tried running the provided yarn command but this is not a valid package name. Does anyone have