我正在尝试从github repo安装一个包,但是我得到以下消息:
npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/z0019rb/.nvm/versions/node/v4.4.7/bin/node" "/Users/z0019rb/.nvm/versions/node/v4.4.7/bin/npm" "install"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! code E404
npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/target-digital-design-tokens
npm ERR! 404
npm ERR! 404 'target-digital-design-tokens' 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 It was specified as a dependency of 'target-base-pattern-library'
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! /Users/z0019rb/dev/design-systems/designsystems-site/npm-debug.log
这就是我的package.json的样子:
"target-digital-design-tokens": "git+ssh://git@git.target.com:design-systems/design-tokens.git"
不确定我做错了什么。我正在尝试安装的repo有一个package.json。谢谢!
答案 0 :(得分:0)
试试这个:
49_sftp_simul_test
并且不要忘记在你的package.json中设置git repo,如下所示:
"git+https://target.com/design-systems/design-tokens"
如果git服务器位于代理服务器后面,请不要忘记在"repository": {
"type": "git",
"url": "git@target.com:design-systems/design-tokens.git"
},
之前设置env http_proxy
:
npm install