node.js 安装cnpm nodemon express pm2 node-inspector

D:\NodeJs\study_source_code>cnpm install express
[express@*] installed at node_modules\.npminstall\express\4.13.4\express (42 pac
kages, use 4s, speed 152.11kB/s, json 280.71kB, tarball 262.16kB)
All packages installed (42 packages installed from npm registry, use 4s, speed 1
50.25kB/s, json 55(280.71kB), tarball 262.16kB)

D:\NodeJs\study_source_code>



D:\NodeJs\study_source_code>cnpm install -g node-inspector
[v8-debug@0.7.7] download from binary mirror: {"module_name":"debug","module_pat
h":"./build/{module_name}/v{version}/{node_abi}-{platform}-{arch}/","remote_path
":"./{module_name}/v{version}/","package_name":"{node_abi}-{platform}-{arch}.tar
.gz","host":"https://npm.taobao.org/mirrors/node-inspector"}
[v8-debug@0.7.7] scripts.preinstall: "node -e 'process.exit(0)'"
[lodash@2.4.2](C:\Users\dell\AppData\Roaming\npm\node_modules\.node-inspector_np
minstall\browser-launcher2\0.4.6\browser-launcher2\node_modules\lodash) deprecat
e: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
[v8-profiler@5.6.5] download from binary mirror: {"module_name":"profiler","modu
le_path":"./build/{module_name}/v{version}/{node_abi}-{platform}-{arch}/","remot
e_path":"./{module_name}/v{version}/","package_name":"{node_abi}-{platform}-{arc
h}.tar.gz","host":"https://npm.taobao.org/mirrors/node-inspector"}
[v8-profiler@5.6.5] scripts.preinstall: "node -e 'process.exit(0)'"
[node-inspector@0.12.8] link C:\Users\dell\AppData\Roaming\npm\node-inspector@ -
> C:\Users\dell\AppData\Roaming\npm\node-inspector
[node-inspector@0.12.8] link C:\Users\dell\AppData\Roaming\npm\node-debug@ -> C:
\Users\dell\AppData\Roaming\npm\node-debug
[node-inspector@*] installed at node_modules\.node-inspector_npminstall\node-ins
pector\0.12.8\node-inspector (235 packages, use 33s, speed 201.88kB/s, json 1.55
MB, tarball 4.98MB)
excute post install scripts...
[v8-profiler@5.6.5] scripts.install: "node-pre-gyp install --fallback-to-build"
at C:\Users\dell\AppData\Roaming\npm\node_modules\.node-inspector_npminstall\v8-
profiler\5.6.5\v8-profiler
[v8-profiler] Success: "C:\Users\dell\AppData\Roaming\npm\node_modules\.node-ins
pector_npminstall\v8-profiler\5.6.5\v8-profiler\build\profiler\v5.6.5\node-v46-w
in32-x64\profiler.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
[v8-profiler@5.6.5] scripts.install success, use 786ms
[v8-debug@0.7.7] scripts.install: "node-pre-gyp install --fallback-to-build" at
C:\Users\dell\AppData\Roaming\npm\node_modules\.node-inspector_npminstall\v8-deb
ug\0.7.7\v8-debug
node-pre-gyp http GET https://npm.taobao.org/mirrors/node-inspector/debug/v0.7.7
/node-v46-win32-x64.tar.gz
node-pre-gyp http 200 https://npm.taobao.org/mirrors/node-inspector/debug/v0.7.7
/node-v46-win32-x64.tar.gz
[v8-debug] Success: "C:\Users\dell\AppData\Roaming\npm\node_modules\.node-inspec
tor_npminstall\v8-debug\0.7.7\v8-debug\build\debug\v0.7.7\node-v46-win32-x64\deb
ug.node" is installed via remote
[v8-debug@0.7.7] scripts.install success, use 2s
All packages installed (235 packages installed from npm registry, use 36s, speed
 184.09kB/s, json 278(1.55MB), tarball 4.98MB)

D:\NodeJs\study_source_code>




D:\NodeJs\study_source_code>cnpm install -g pm2
install ikt from git http://ikt.pm2.io/ikt.git#master, may be very slow, please
keep patience
git clone http://ikt.pm2.io/ikt.git C:\Users\dell\AppData\Roaming\npm\node_modul
es\.pm2_npminstall\.tmp\f09c41e0-edf7-4b61-b8db-1eacadb3e3e4
'git' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
[ikt@git+http://ikt.pm2.io/ikt.git#master] optional install error: Error: [ikt@g
it+http://ikt.pm2.io/ikt.git#master]: Run "C:\Windows\system32\cmd.exe /d /s /c
git clone http://ikt.pm2.io/ikt.git C:\Users\dell\AppData\Roaming\npm\node_modul
es\.pm2_npminstall\.tmp\f09c41e0-edf7-4b61-b8db-1eacadb3e3e4" error, exit code 1

    at module.exports (C:\Users\dell\AppData\Roaming\npm\node_modules\cnpm\node_
modules\npminstall\lib\download\git.js:55:11)
    at throw (native)
    at onRejected (C:\Users\dell\AppData\Roaming\npm\node_modules\cnpm\node_modu
les\npminstall\node_modules\co\index.js:81:24)
    at process._tickCallback (node.js:369:9)
[fsevents@1.0.12] download from binary mirror: {"module_name":"fse","module_path
":"./lib/binding/{configuration}/{node_abi}-{platform}-{arch}/","remote_path":".
/v{version}/","package_name":"{module_name}-v{version}-{node_abi}-{platform}-{ar
ch}.tar.gz","host":"https://npm.taobao.org/mirrors/fsevents"}
[fsevents@1.0.12](C:\Users\dell\AppData\Roaming\npm\node_modules\.pm2_npminstall
\chokidar\1.4.3\chokidar\node_modules\fsevents) unsupported: Package require os(
darwin) not compatible with your platform(win32)
[fsevents@^1.0.0] optional install error: Package require os(darwin) not compati
ble with your platform(win32)
[pm2@1.1.3] link C:\Users\dell\AppData\Roaming\npm\pm2@ -> C:\Users\dell\AppData
\Roaming\npm\pm2
[pm2@1.1.3] link C:\Users\dell\AppData\Roaming\npm\pm2-dev@ -> C:\Users\dell\App
Data\Roaming\npm\pm2-dev
[pm2@*] installed at node_modules\.pm2_npminstall\pm2\1.1.3\pm2 (110 packages, u
se 17s, speed 140.68kB/s, json 825.02kB, tarball 1.49MB)
All packages installed (110 packages installed from npm registry, 1 packages ins
talled from git, use 17s, speed 139.72kB/s, json 122(825.02kB), tarball 1.49MB)

D:\NodeJs\study_source_code>


D:\NodeJs\study_source_code>cnpm install -g nodemon
[fsevents@1.0.12] download from binary mirror: {"module_name":"fse","module_path
":"./lib/binding/{configuration}/{node_abi}-{platform}-{arch}/","remote_path":".
/v{version}/","package_name":"{module_name}-v{version}-{node_abi}-{platform}-{ar
ch}.tar.gz","host":"https://npm.taobao.org/mirrors/fsevents"}
[fsevents@1.0.12](C:\Users\dell\AppData\Roaming\npm\node_modules\.nodemon_npmins
tall\chokidar\1.5.2\chokidar\node_modules\fsevents) unsupported: Package require
 os(darwin) not compatible with your platform(win32)
[fsevents@^1.0.0] optional install error: Package require os(darwin) not compati
ble with your platform(win32)
[nodemon@1.9.2] link C:\Users\dell\AppData\Roaming\npm\nodemon@ -> C:\Users\dell
\AppData\Roaming\npm\nodemon
[nodemon@*] installed at node_modules\.nodemon_npminstall\nodemon\1.9.2\nodemon
(137 packages, use 17s, speed 138.24kB/s, json 574.13kB, tarball 1.73MB)
All packages installed (137 packages installed from npm registry, use 17s, speed
 137.36kB/s, json 148(574.13kB), tarball 1.73MB)

D:\NodeJs\study_source_code>


D:\NodeJs\study_source_code>npm install -g cnpm --registry=https://registry.npm.
taobao.org/
C:\Users\dell\AppData\Roaming\npm\cnpm-check -> C:\Users\dell\AppData\Roaming\np
m\node_modules\cnpm\bin\cnpm-check
C:\Users\dell\AppData\Roaming\npm\cnpm -> C:\Users\dell\AppData\Roaming\npm\node
_modules\cnpm\bin\cnpm
C:\Users\dell\AppData\Roaming\npm\cnpm-web -> C:\Users\dell\AppData\Roaming\npm\
node_modules\cnpm\bin\cnpm-web
C:\Users\dell\AppData\Roaming\npm\cnpm-user -> C:\Users\dell\AppData\Roaming\npm
\node_modules\cnpm\bin\cnpm-user
C:\Users\dell\AppData\Roaming\npm\cnpm-doc -> C:\Users\dell\AppData\Roaming\npm\
node_modules\cnpm\bin\cnpm-doc
C:\Users\dell\AppData\Roaming\npm\cnpm-search -> C:\Users\dell\AppData\Roaming\n
pm\node_modules\cnpm\bin\cnpm-search
C:\Users\dell\AppData\Roaming\npm\cnpm-sync -> C:\Users\dell\AppData\Roaming\npm
\node_modules\cnpm\bin\cnpm-sync
cnpm@4.2.0 C:\Users\dell\AppData\Roaming\npm\node_modules\cnpm
├── auto-correct@1.0.0
├── giturl@1.0.0
├── open@0.0.5
├── bagpipe@0.3.5
├── colors@1.1.2
├── commander@2.7.1 (graceful-readlink@1.0.1)
├── debug@2.2.0 (ms@0.7.1)
├── cross-spawn@0.2.9 (lru-cache@2.7.3)
├── npm-request@0.0.4 (urllib@0.5.11)
├── urllib@2.9.1 (statuses@1.2.1, media-typer@0.3.0, any-promise@1.2.0, human
ize-ms@1.0.2, iconv-lite@0.4.13, digest-header@0.0.1, default-user-agent@1.0.0)
├── npminstall@1.10.1 (ms@0.7.1, destroy@1.0.4, binary-mirror-config@1.1.0, a
wait-event@1.0.0, runscript@1.1.0, bytes@2.3.0, co@4.6.0, semver@5.1.0, uuid@2.0
.2, node-uuid@1.4.7, minimist@1.2.0, co-parallel@1.0.0, cmd-shim@2.0.2, mkdirp@0
.5.1, npm-package-arg@4.1.1, chalk@1.1.3, utility@1.7.1, tar@2.2.1, co-fs-extra@
1.2.1, rimraf@2.5.2, mz@2.4.0, node-gyp@3.3.1)
└── npm@3.9.5

D:\NodeJs\study_source_code>


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值