https://github.com/rlidwka/sinopia/issues/399
Unable to resolve dependencies like “@angular/common”
Hi,
first you must update your config.yaml
section:
packages:
'@*/*':
# scoped packages
access: $all
publish: $authenticated
proxy: npmjs
in default config.yaml there is no proxy setting.
If anyone has this problem, workaround for this is:
Option 1: in sinopia/lib/up-storage.js
change code on line number 10
var encode = function(thing) {
return encodeURIComponent(thing).replace(/^%40/, '@');
};
Option 2: set npm scoped registry to npmjs.org
npm config set "@angular:registry" http://registry.npmjs.org/
taobao npm: https://registry.npm.taobao.org
新的fork of sinopia:https://github.com/verdaccio/verdaccio