首页 > 解决方案 > 尝试安装 npm 后出现错误

问题描述

我是网络开发的新手。运行命令后我收到此错误消息:npm install。

可能有人可以帮助我。

信息:

PS C:\Users\Giu\node_modules\npm> npm install
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)

> npm@6.4.1 prepare C:\Users\Giu\node_modules\npm
> node bin/npm-cli.js --no-audit --no-timing prune --prefix=. --no-global && rimraf test/*/*/node_modules && make -j4 doc

up to date in 4.661s
Der Befehl "rimraf" ist entweder falsch geschrieben oder 
konnte nicht gefunden werden. English: The command "rimraf" is either wrong written or it cant be find.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! npm@6.4.1 prepare: `node bin/npm-cli.js --no-audit --no-timing prune --prefix=. --no-global && rimraf test/*/*/node_modules && make -j4 doc`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the npm@6.4.1 prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Giu\AppData\Roaming\npm-cache\_logs\2018-10-16T06_40_26_185Z-debug.log

留言结束

谢谢!

标签: node.jsangularnpm

解决方案


为了安装 npm 下载node.js,它已经安装好了。

单击此处 要从 package.json 下载依赖项,请使用npm installnpm i.

要使依赖项使用初始类型 npm init ,并填写足够的详细信息以使您的项目依赖项。


推荐阅读