2016-05-30 6 views
0

プライベートなnpmサーバを稼働させることに成功しました。これはWindows 10マシン上のUbuntu VM内にあります。Angular2が複製されたnpmリポジトリの一部でないのはなぜですか?

https://skimdb.npmjs.com/registryをCouchDBのソースとして使用してnpmリポジトリを複製し、jqueryなどのパッケージに対して、Windows 10マシンからクエリできます。

PS D:\Sources\NodeJS\test> npm view jquery 

{ name: 'jquery', 
    description: 'JavaScript library for DOM operations', 
    'dist-tags': { beta: '3.0.0-rc1', latest: '2.2.4' }, 
    ... 
    gitHead: 'c0185ab7c75aab88762c5aae780b9d83b80eda72', 
    dist: 
    { shasum: '2c89d6889b5eac522a7eea32c14521559c6cbf02', 
    tarball: 'http://registry.npmjs.org/jquery/-/jquery-2.2.4.tgz' }, 
    directories: {} } 

ただし、@angular/*パッケージのすべてが欠落しているようです。私がnpmをskimdbに直接指しても、まったく同じ結果になるので、複製に問題はありません。

PS D:\Sources\NodeJS\test> npm view @angular/common 
npm ERR! Windows_NT 10.0.10586 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "view" "@angular/common" 
npm ERR! node v5.9.1 
npm ERR! npm v3.7.3 
npm ERR! code E404 

npm ERR! 404 Not Found: @angular/common 
npm ERR! 404 
npm ERR! 404 '@angular/common' is not in the npm registry. 
npm ERR! 404 You should bug the author to publish it (or use the name yourself!) 
npm ERR! 404 
npm ERR! 404 Note that you can also install from a 
npm ERR! 404 tarball, folder, http url, or git url. 

npm ERR! Please include the following file with any support request: 
npm ERR!  D:\Sources\NodeJS\test\npm-debug.log 

これは適切なレジストリですか?

答えて

0

これはスコープ付きパッケージに沸騰しているようです。ここで、@angularは何らかの名前空間です。

私は、 @angular範囲からパッケージの公式リポジトリを指していることにより、この問題を解決し、即ち、次のように私の .npmrcは今になります

registry=http://<couchdb server ip>:5984/registry/_design/app/_rewrite 
@angular:registry=https://registry.npmjs.org/ 
関連する問題