【问题标题】:Getting Error after trying to install npm尝试安装 npm 后出现错误
【发布时间】:2018-10-25 01:13:34
【问题描述】:

我是网络开发的新手。运行命令后我收到此错误消息: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

留言结束

谢谢!

【问题讨论】:

  • 你要安装什么?
  • 我不确定。我得到了描述。 1. 安装 node.js 和 npm 2. 运行 npm install -g @angular/cli@latest“ 3. npm install 4. ng serve

标签: node.js angular npm


【解决方案1】:

为了安装 npm download node.js 它已经安装好了。

CLICK HERE 要从 package.json 下载依赖项,请使用 npm installnpm i

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

【讨论】:

    【解决方案2】:

    安装 npm 下载 node.js 和 npm 也将被安装check this link

    然后你可以像这样npm install -g @angular/cli@latest 全局安装angular cli

    然后您使用此命令创建 Angular 项目 ng new projectNameand 还有 check this link

    然后移动到项目文件夹cd projectName

    然后使用 npm install 从 package.json 安装所有项目依赖项

    最后你可以运行项目并使用ng serve --open在浏览器上运行

    【讨论】:

      猜你喜欢
      • 2020-12-04
      • 2019-01-17
      • 2014-08-15
      • 2016-09-14
      • 1970-01-01
      • 1970-01-01
      • 2021-11-03
      • 2016-11-23
      • 2015-08-07
      相关资源
      最近更新 更多