2017-04-04 6 views
0

私はangular2 cliコンポーネントを持っていて、npmで公開したいと思います。 。 私はコマンド- adduser を使用しましたが、公開しようとしたときに次のエラーが発生しています。npmにangle2コンポーネントを公開するときにエラーが発生する:「正しいユーザーとしてログインしていますか:名前」

D:\names>npm publish 
    npm ERR! publish Failed PUT 403 
    npm ERR! Windows_NT 6.3.9600 
    npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "publi 
    sh" 
    npm ERR! node v6.9.2 
    npm ERR! npm v3.10.9 
    npm ERR! code E403 

    npm ERR! you do not have permission to publish "names". Are you logged in as the correct user? : names 
    npm ERR! 
    npm ERR! If you need help, you may report this error at: 
    npm ERR!  <https://github.com/npm/npm/issues> 

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

    D:\names>sudo -s 
    'sudo' is not recognized as an internal or external command, 
    operable program or batch file. 

くれ

答えて

0

チェックdocsを助けてください。

npm login 

として、ログインを確認:

npm config ls 

サイドノート:あなたは、クライアント側でログインする必要があり

sudoは、そうでない場合は使用できません許可を取得するには、Linuxのコマンドであり、 Windowsのそれに相当するものは、となります。

関連する問題