Vue-element-admin: npm install 报错

Created on 31 Dec 2019  ·  8Comments  ·  Source: PanJiaChen/vue-element-admin

npm WARN deprecated [email protected]: This project has been renamed to 'tasksfile'. Install using 'npm install tasksfile' ins
tead.
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number o
f issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated [email protected]: This project has been renamed to @pawelgalazka/cli . Install using @pawelgalazka/cli
instead
npm WARN deprecated [email protected]: Package no longer supported. Contact [email protected] for more info.
npm WARN deprecated [email protected]: This project has been renamed to @pawelgalazka/cli-args. Install using @pawelgalazk
a/cli-args instead
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated [email protected]: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Vis
it https://github.com/lukeed/kleur/releases/tag/v3.0.0\ for migration path(s).
npm WARN deprecated [email protected]: use String.prototype.padStart()
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://[email protected]/sohee-lee7/Squire.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\DELL\AppData\Roaming\npm-cache_logs\2019-12-31T00_52_25_540Z-debug.log

Most helpful comment

虽然不知道什么原因,但先npm install 在 cnpm install就可以解决了

遇到了差不多的问题,win10系统,没有安装Python2.X,但是没有遇到所说的node-sass下载失败问题

npm ERR! code 1
npm ERR! Command failed: git submodule update -q --init --recursive
npm ERR! fatal: E:/Git/mingw64/libexec/git-core\git-submodule cannot be used without a working tree.

一开始是这样尝试的:

npm install  # 失败

npm install --registry=https://registry.npm.taobao.org # 第二次尝试失败

最后无奈试试看cnpm

cnpm install # 这次居然可以了

后续可以试试yarn

All 8 comments

虽然不知道什么原因,但先npm install 在 cnpm install就可以解决了

虽然不知道什么原因,但先npm install 在 cnpm install就可以解决了

遇到了差不多的问题,win10系统,没有安装Python2.X,但是没有遇到所说的node-sass下载失败问题

npm ERR! code 1
npm ERR! Command failed: git submodule update -q --init --recursive
npm ERR! fatal: E:/Git/mingw64/libexec/git-core\git-submodule cannot be used without a working tree.

一开始是这样尝试的:

npm install  # 失败

npm install --registry=https://registry.npm.taobao.org # 第二次尝试失败

最后无奈试试看cnpm

cnpm install # 这次居然可以了

后续可以试试yarn

遇到了差不多的问题,win10系统
image
npm install # 失败

npm install --registry=https://registry.npm.taobao.org # 第二次尝试失败

最后无奈试试看cnpm:

cnpm install # 这次居然可以了

qqq
与楼上一样,npm install与npm install --registry=https://registry.npm.taobao.org均尝试失败
最后根据楼上建议 cnpm install成功安装,但是原因未知

使用cnpm以及yarn之后仍然安装失败,更换淘宝源也不行…

deprecate [email protected] › nomnom@^1.5.x Package no longer supported. Contact [email protected] for more info.
deprecate @vue/[email protected][email protected][email protected][email protected] › kleur@^2.0.1 Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit https://github.com/lukeed/kleur/releases/tag/v3.0.0\ for migration path(s).
deprecate @vue/[email protected][email protected][email protected] › chokidar@^2.1.8 Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
deprecate @vue/[email protected][email protected][email protected][email protected] › circular-json@^0.3.1 CircularJSON is in maintenance only, flatted is its successor.
deprecate [email protected] Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
deprecate @vue/[email protected][email protected][email protected][email protected][email protected] › left-pad@^1.3.0 use String.prototype.padStart()
deprecate @babel/[email protected] › core-js@^2.5.7 core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
deprecate @vue/[email protected][email protected][email protected][email protected][email protected] › fsevents@^1.2.3 fsevents 1 will break on node v14+. Upgrade to fsevents 2 with massive improvements.
deprecate runjs@^4.3.2 This project has been renamed to 'tasksfile'. Install using 'npm install tasksfile' instead.
deprecate [email protected][email protected] This project has been renamed to @pawelgalazka/cli . Install using @pawelgalazka/cli instead
deprecate [email protected][email protected][email protected] This project has been renamed to @pawelgalazka/cli-args. Install using @pawelgalazka/cli-args instead

遇到同样的问题

那这个问题咋解决呢?作者建议不要用cnpm install,而且我git应该是好使的

Was this page helpful?
0 / 5 - 0 ratings