apache / apache/cordova

.npmrc

Open
#299 0 comments 0 reactions 1 assignee Claimed by @breautek View on GitHub
Dominant language
No language data
Stars
710
Forks
75
PR merge metrics
No merged PRs in 30d

Description

# Feature Request

- Add `.npmrc` file to assert using `https://registry.npmjs.org` registry.

## Motivation Behind Feature

https://lists.apache.org/thread.html/raa963b0c2349e8d08d6c2f9d557b9055402d6410d35d4e9573b63cab%40%3Cdev.cordova.apache.org%3E

To summarize, for users who have alternate NPM configurations and use private and/or NPM mirrors, it can be easy to install packages from a source other than the official NPM registry without realizing it. It's in Cordova's interest to ensure that NPM runs with a configuration of using the official NPM registry.

We can correct this via adding an `.npmrc` file to each of our repos with the following config:

```
registry=https://registry.npmjs.org
```

## Implementation Progress

### Platforms

- [x] cordova-android (https://github.com/apache/cordova-android/pull/1348)
- [x] cordova-browser (https://github.com/apache/cordova-browser/pull/117)
- [x] cordova-electron
- [x] cordova-ios (https://github.com/apache/cordova-ios/pull/1145)

### Plugins

- [x] cordova-plugin-battery-status
- [x] cordova-plugin-camera (https://github.com/apache/cordova-plugin-camera/pull/893)
- [x] cordova-plugin-device
- [x] cordova-plugin-dialogs (https://github.com/apache/cordova-plugin-dialogs/pull/188)
- [x] cordova-plugin-file (https://github.com/apache/cordova-plugin-file/pull/490)
- [x] cordova-plugin-file-transfer (https://github.com/apache/cordova-plugin-file-transfer/pull/323)
- [x] cordova-plugin-geolocation (https://github.com/apache/cordova-plugin-geolocation/pull/236)
- [x] cordova-plugin-inappbrowser
- [x] cordova-plugin-media
- [x] cordova-plugin-media-capture (https://github.com/apache/cordova-plugin-media-capture/pull/305)
- [x] cordova-plugin-network-information
- [x] cordova-plugin-screen-orientation (https://github.com/apache/cordova-plugin-screen-orientation/pull/103)
- [x] cordova-plugin-splashscreen
- [x] cordova-plugin-statusbar
- [x] cordova-plugin-vibration

### Tooling

- [x] cordova-cli (https://github.com/apache/cordova-cli/pull/564)
- [x] cordova-coho (https://github.com/apache/cordova-coho/pull/288)
- [x] cordova-common (https://github.com/apache/cordova-common/pull/173)
- [x] cordova-create
- [x] cordova-fetch
- [x] cordova-js
- [x] cordova-lib (https://github.com/apache/cordova-lib/pull/881)
- [x] cordova-node-xcode
- [x] cordova-paramedic (https://github.com/apache/cordova-paramedic/pull/223)
- [x] cordova-plugin-test-framework
- [x] cordova-serve
- [x] cordova-docs (https://github.com/apache/cordova-docs/pull/1204)
- [ ] cordova-app-hello-world
- [ ] cordova-test-platform
- [ ] cordova-mobile-spec
- [x] cordova-plugman (https://github.com/apache/cordova-plugman/pull/157)
- [x] cordova-eslint (https://github.com/apache/cordova-eslint/pull/18)

_Excluded:_
* `cordova-status`
* `cordova`
* any unused, outdated, or deprecated repos

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.