gpt4 book ai didi

node.js - 通过 cmd 创建 ember 应用程序时出现以下错误

转载 作者:太空宇宙 更新时间:2023-11-04 03:15:40 25 4
gpt4 key购买 nike

我正在尝试通过命令提示符创建 ember 应用程序

我安装了 Nodejs 版本 v10.16.0,然后使用命令 npm install -g ember -cli 来安装 ember。 ember 已成功安装,版本为 ember-cli 3.10.1。

然后我使用命令ember new ember-quickstart创建了一个新应用程序。然后我收到以下错误:

Error creating new application. Removing generated directory `./kushi`
Command failed: npm install --loglevel error
npm WARN deprecated @babel/polyfill@7.4.4: 🚨 As of Babel 7.4.0, this
npm WARN deprecated package has been deprecated in favor of directly
npm WARN deprecated including core-js/stable (to polyfill ECMAScript
npm WARN deprecated features) and regenerator-runtime/runtime
npm WARN deprecated (needed to use transpiled generator functions):
npm WARN deprecated
npm WARN deprecated import "core-js/stable";
npm WARN deprecated import "regenerator-runtime/runtime";
npm WARN deprecated exists-sync@0.0.4: Please replace with usage of fs.existsSync
npm WARN tar ENOENT: no such file or directory, open
'C:\Users\kagrawal.EMEAAD\Desktop\kushi\node_modules\.staging\broccoli-rollup-93db1951\dist\index.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\kagrawal.EMEAAD\Desktop\kushi\node_modules\.staging\broccoli-rollup-93db1951\dist\index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\kagrawal.EMEAAD\Desktop\kushi\node_modules\.staging\ember-cli-typescript-b54d1b7c\js\blueprints\ember-cli-typescript\index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\kagrawal.EMEAAD\Desktop\kushi\node_modules\.staging\ember-cli-typescript-b54d1b7c\js\lib\commands\clean.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\kagrawal.EMEAAD\Desktop\kushi\node_modules\.staging\ember-cli-typescript-b54d1b7c\js\lib\commands\precompile.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\kagrawal.EMEAAD\Desktop\kushi\node_modules\.staging\ember-cli-typescript-b54d1b7c\js\lib\utilities\copy-declarations.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\kagrawal.EMEAAD\Desktop\kushi\node_modules\.staging\ember-cli-typescript-b54d1b7c\js\lib\utilities\ember-cli-entities.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\kagrawal.EMEAAD\Desktop\kushi\node_modules\.staging\ember-cli-typescript-b54d1b7c\js\lib\utilities\fork.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\kagrawal.EMEAAD\Desktop\kushi\node_modules\.staging\ember-cli-typescript-b54d1b7c\blueprint-files\ember-cli-typescript\__config_root__\config\environment.d.ts'
npm WARN tar ENOENT: no
such file or directory, open 'C:\Users\kagrawal.EMEAAD\Desktop\kushi\node_modules\.staging\ember-cli-typescript-b54d1b7c\blueprint-files\ember-cli-typescript\types\__app_name__\index.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\kagrawal.EMEAAD\Desktop\kushi\node_modules\.staging\ember-cli-5cfc18ea\blueprints\module-unification-app\files\src\ui\routes\application\template.hbs'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\kagrawal.EMEAAD\Desktop\kushi\node_modules\.staging\ember-cli-5cfc18ea\lib\tasks\server\middleware\broccoli-watcher\index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\kagrawal.EMEAAD\Desktop\kushi\node_modules\.staging\ember-cli-5cfc18ea\lib\tasks\server\middleware\broccoli-watcher\package.json'
npm WARN tar ENOENT: no such file or directory, lstat 'C:\Users\kagrawal.EMEAAD\Desktop\kushi\node_modules\.staging\ember-cli-5cfc18ea\lib\tasks\server\middleware'
npm WARN tar ENOENT: no such file or directory, lstat 'C:\Users\kagrawal.EMEAAD\Desktop\kushi\node_modules\.staging\ember-cli-5cfc18ea\lib'
npm ERR! code ERR_INVALID_OPT_VALUE
npm ERR! The value "false" is invalid for option "readableHighWaterMark"
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\kagrawal.EMEAAD\AppData\Roaming\npm-cache\_logs\2019-07-02T09_36_58_880Z-debug.log
Stack Trace and Error Report: C:\Users\KAGRAW~1.EME\AppData\Local\Temp/error.dump.4edeef2bba53a9733909115d695aa4ba.log

有人可以帮我解决这个错误吗?

最佳答案

奥拉@dhS,

我注意到您在回答中说 Ember 不支持 Node 10,这不是事实。 Ember 的 Node 支持通常取决于测试的内容以及当前持续集成 (CI) 正在 Node 8、10、11 和 12 上运行。

您的 npm 安装可能存在权限问题或潜在的某些问题,如果没有该错误末尾列出的文件内容,很难诊断这些问题:

Stack Trace and Error Report: C:\Users\KAGRAW~1.EME\AppData\Local\Temp/error.dump.4edeef2bba53a9733909115d695aa4ba.log

下次遇到这样的错误时,了解此文件的内容会非常有帮助 🎉

此外,您发布的大多数错误都是警告,可能与您计算机上的权限问题有关🤔如果您再次遇到此问题,可能需要升级您的 Node 版本或重新安装它,并通过运行以下命令确保您使用的是最新的 npm 版本:

npm i -g npm@latest

关于node.js - 通过 cmd 创建 ember 应用程序时出现以下错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56850584/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com