node.js安裝好之后,在dos命令下輸入node -v正常;
但是輸入nmp -v時就出現(xiàn)錯誤了
下面是錯誤日志:(npm-debug.log)
0 info it worked if it ends with ok
1 verbose cli [ 'D:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'cnpm',
1 verbose cli '–registry=https://registry.npm.taobao.org' ]
2 info using npm@2.15.1
3 info using node@v4.4.3
4 verbose install initial load of C:\Users\Administrator\AppData\Roaming\npm\package.json
5 verbose readDependencies loading dependencies from C:\Users\Administrator\AppData\Roaming\npm\package.json
6 silly cache add args [ 'cnpm', null ]
7 verbose cache add spec cnpm
8 silly cache add args [ '–registry=https://registry.npm.taobao.org', null ]
9 verbose cache add spec –registry=https://registry.npm.taobao.org
10 silly cache add parsed spec Result {
10 silly cache add raw: 'cnpm',
10 silly cache add scope: null,
10 silly cache add name: 'cnpm',
10 silly cache add rawSpec: '',
10 silly cache add spec: 'latest',
10 silly cache add type: 'tag' }
11 silly addNamed cnpm@latest
12 verbose addNamed "latest" is being treated as a dist-tag for cnpm
13 info addNameTag [ 'cnpm', 'latest' ]
14 silly mapToRegistry name cnpm
15 silly mapToRegistry using default registry
16 silly mapToRegistry registry https://registry.npmjs.org/
17 silly mapToRegistry data Result {
17 silly mapToRegistry raw: 'cnpm',
17 silly mapToRegistry scope: null,
17 silly mapToRegistry name: 'cnpm',
17 silly mapToRegistry rawSpec: '',
17 silly mapToRegistry spec: 'latest',
17 silly mapToRegistry type: 'tag' }
18 silly mapToRegistry uri https://registry.npmjs.org/cnpm
19 verbose addNameTag registry:https://registry.npmjs.org/cnpm not in flight; fetching
20 silly cache add parsed spec Result {
20 silly cache add raw: '–registry=https://registry.npm.taobao.org',
20 silly cache add scope: null,
20 silly cache add name: null,
20 silly cache add rawSpec: '–registry=https://registry.npm.taobao.org',
20 silly cache add spec: 'D:\\–registry=https:\\registry.npm.taobao.org',
20 silly cache add type: 'local' }
21 error addLocal Could not install D:\–registry=https:\registry.npm.taobao.org
22 verbose request uri https://registry.npmjs.org/cnpm
23 verbose request no auth needed
24 info attempt registry request try #1 at 09:57:51
25 verbose request id baf8c862cfcdd3ef
26 verbose etag W/"59fa7e79-28fb1"
27 verbose lastModified Thu, 02 Nov 2017 02:10:01 GMT
28 http request GET https://registry.npmjs.org/cnpm
29 http 304 https://registry.npmjs.org/cnpm
30 verbose headers { date: 'Tue, 14 Nov 2017 01:53:46 GMT',
30 verbose headers via: '1.1 varnish',
30 verbose headers 'cache-control': 'max-age=300',
30 verbose headers etag: 'W/"59fa7e79-28fb1"',
30 verbose headers age: '175',
30 verbose headers connection: 'keep-alive',
30 verbose headers 'x-served-by': 'cache-nrt6124-NRT',
30 verbose headers 'x-cache': 'HIT',
30 verbose headers 'x-cache-hits': '1',
30 verbose headers 'x-timer': 'S1510624427.596870,VS0,VE0',
30 verbose headers vary: 'Accept-Encoding, Accept' }
31 silly get cb [ 304,
31 silly get { date: 'Tue, 14 Nov 2017 01:53:46 GMT',
31 silly get via: '1.1 varnish',
31 silly get 'cache-control': 'max-age=300',
31 silly get etag: 'W/"59fa7e79-28fb1"',
31 silly get age: '175',
31 silly get connection: 'keep-alive',
31 silly get 'x-served-by': 'cache-nrt6124-NRT',
31 silly get 'x-cache': 'HIT',
31 silly get 'x-cache-hits': '1',
31 silly get 'x-timer': 'S1510624427.596870,VS0,VE0',
31 silly get vary: 'Accept-Encoding, Accept' } ]
32 verbose etag https://registry.npmjs.org/cnpm from cache
33 verbose get saving cnpm to C:\Users\Administrator\AppData\Roaming\npm-cache\registry.npmjs.org\cnpm\.cache.json
34 verbose correctMkdir C:\Users\Administrator\AppData\Roaming\npm-cache correctMkdir not in flight; initializing
35 silly addNameTag next cb for cnpm with tag latest
36 silly addNamed cnpm@5.1.1
37 verbose addNamed "5.1.1" is a plain semver version for cnpm
38 silly cache afterAdd cnpm@5.1.1
39 verbose afterAdd C:\Users\Administrator\AppData\Roaming\npm-cache\cnpm\5.1.1\package\package.json not in flight; writing
40 verbose correctMkdir C:\Users\Administrator\AppData\Roaming\npm-cache correctMkdir not in flight; initializing
41 verbose afterAdd C:\Users\Administrator\AppData\Roaming\npm-cache\cnpm\5.1.1\package\package.json written
42 verbose stack Error: ENOENT: no such file or directory, open 'D:\–registry=https:\registry.npm.taobao.org'
42 verbose stack at Error (native)
43 verbose cwd D:\
44 error Windows_NT 6.1.7601
45 error argv "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cnpm" "–registry=https://registry.npm.taobao.org"
46 error node v4.4.3
47 error npm v2.15.1
48 error path D:\–registry=https:\registry.npm.taobao.org
49 error code ENOENT
50 error errno -4058
51 error syscall open
52 error enoent ENOENT: no such file or directory, open 'D:\–registry=https:\registry.npm.taobao.org'
52 error enoent This is most likely not a problem with npm itself
52 error enoent and is related to npm not being able to find a file.
53 verbose exit [ -4058, true ]
北大青鳥APTECH成立于1999年。依托北京大學優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國IT技能型緊缺人才,是大數(shù)據(jù)專業(yè)的國家
達內(nèi)教育集團成立于2002年,是一家由留學海歸創(chuàng)辦的高端職業(yè)教育培訓機構(gòu),是中國一站式人才培養(yǎng)平臺、一站式人才輸送平臺。2014年4月3日在美國成功上市,融資1
北大課工場是北京大學校辦產(chǎn)業(yè)為響應國家深化產(chǎn)教融合/校企合作的政策,積極推進“中國制造2025”,實現(xiàn)中華民族偉大復興的升級產(chǎn)業(yè)鏈。利用北京大學優(yōu)質(zhì)教育資源及背
博為峰,中國職業(yè)人才培訓領域的先行者
曾工作于聯(lián)想擔任系統(tǒng)開發(fā)工程師,曾在博彥科技股份有限公司擔任項目經(jīng)理從事移動互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍懿科技有限責任公司從事總經(jīng)理職務負責iOS教學及管理工作。
浪潮集團項目經(jīng)理。精通Java與.NET 技術(shù), 熟練的跨平臺面向?qū)ο箝_發(fā)經(jīng)驗,技術(shù)功底深厚。 授課風格 授課風格清新自然、條理清晰、主次分明、重點難點突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁制作和網(wǎng)頁游戲開發(fā)。
具有10 年的Java 企業(yè)應用開發(fā)經(jīng)驗。曾經(jīng)歷任德國Software AG 技術(shù)顧問,美國Dachieve 系統(tǒng)架構(gòu)師,美國AngelEngineers Inc. 系統(tǒng)架構(gòu)師。