【发布时间】:2017-06-07 04:53:17
【问题描述】:
当我运行 sudo npm install -g protractor 时,出现错误,看起来好像没有那个文件夹/文件。有没有人知道如何解决这个问题?非常感谢:)
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "protractor"
npm ERR! node v6.9.2
npm ERR! npm v3.10.9
npm ERR! code E404
npm ERR! 404 no such package available : @types/node
npm ERR! 404
npm ERR! 404 '@types/node' 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 'protractor'
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:
【问题讨论】:
-
即使我将 node 更新到 v7.4.0 并将 npm 更新到 4.1.1,同样的错误,'@type/node' 不在 npm 注册表中
标签: angularjs npm protractor