【发布时间】:2017-08-17 21:34:53
【问题描述】:
我正在尝试使用命令安装此https://github.com/VadimDez/ngx-order-pipe
npm install ngx-order-pipe --save
但我得到了一个
ENOENT: no such file or directory, open 'C:\Users\<directoryName>\package.json'
当我清楚地拥有它时
C:\Users\<directoryName>\Source\Repos\July17\DDE\Web\package.json
所以我的问题是,我如何告诉/指向 NPM 到我现有的 package.json 文件?
【问题讨论】:
-
先切换到`C:\Users\
\Source\Repos\July17\DDE\Web`目录? -
糟糕,这样做了,现在我收到了
SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})错误 -
这不是错误,它只是告诉您它正在跳过一个可选的仅限 Mac 的软件包。
标签: npm package.json