package.json 用于全局安装的软件包



我正在尝试更新我的核素服务器。sudo npm update -g nuclide --verbose的输出为:

$ sudo npm update -g --dev nuclide --verbose
npm info it worked if it ends with ok
npm verb cli [ '/usr/bin/nodejs',
npm verb cli   '/usr/bin/npm',
npm verb cli   'update',
npm verb cli   '-g',
npm verb cli   '--dev',
npm verb cli   'nuclide',
npm verb cli   '--verbose' ]
npm info using npm@4.2.0
npm info using node@v7.9.0
npm verb request uri https://registry.npmjs.org/nuclide
npm verb request no auth needed
npm info attempt registry request try #1 at 11:02:17 AM
npm verb request id bf1180b825d1a807
npm verb etag W/"590a3387-6633d"
npm verb lastModified Wed, 03 May 2017 19:46:15 GMT
npm http request GET https://registry.npmjs.org/nuclide
npm http 304 https://registry.npmjs.org/nuclide
npm verb headers { date: 'Fri, 12 May 2017 11:02:17 GMT',
npm verb headers   via: '1.1 varnish',
npm verb headers   'cache-control': 'max-age=300',
npm verb headers   etag: 'W/"590a3387-6633d"',
npm verb headers   age: '132',
npm verb headers   connection: 'keep-alive',
npm verb headers   'x-served-by': 'cache-syd1625-SYD',
npm verb headers   'x-cache': 'HIT',
npm verb headers   'x-cache-hits': '1',
npm verb headers   'x-timer': 'S1494586937.425880,VS0,VE0',
npm verb headers   vary: 'Accept-Encoding' }
npm verb etag https://registry.npmjs.org/nuclide from cache
npm verb get saving nuclide to /home/daniel/.npm/registry.npmjs.org/nuclide/.cache.json
npm verb correctMkdir /home/daniel/.npm correctMkdir not in flight; initializing
npm verb outdated not updating nuclide because it's currently at the maximum version that matches its specified semver range
npm verb exit [ 0, true ]
npm info ok

搜索Google并没有找到任何东西来帮助解决这个问题,它们都提到了一个package.json并更改了其中的一些东西,但我没有package.json(可能是因为我正在全局安装它(。如何找到配置或执行其他操作以允许我更新核素包?

系统信息:

  • 乌班图16.04
  • npm 版本:4.2.0
  • 节点版本:v7.9.0
  • 当前核素版本:217

您寻找的 package.json 配置是您在最初安装节点的任何地方,在 Windows 上它位于 /usr/local .在 unix 系统上,可以通过 usr/local/lib/node/usr/local/lib/node_modules 找到它。

您也可以运行sudo npm root -g来查找安装的位置。

此外,可以通过点击指向nodejs应用程序的链接找到它,该应用程序将带您进入安装文件夹。这些链接是在成功滴注后建立的。

之后,您可以删除/更新package.json中的依赖项并再次运行 npm i -g。

特别是在您的版本上,您的安装文件夹/usr/local/lib/node_modules .

相关内容

  • 没有找到相关文章

最新更新