错误运行“故宫开始”和“故宫安装吞掉”与基金会

问题描述 投票:1回答:1

我是新来基金会的电子邮件,我只是试图让安装了一切,以下方向一步一步来。我已经安装了Git的,和Node.js的(最新版本11.5.0)。

我建立了我的项目目录(test123)里边有我跟跑“故宫开始”。我这样做,收到以下错误:

Alexandrus-MacBook-Pro-2:test123 alexcrisan$ npm start

> [email protected] start. /Users/alexcrisan/Documents/sites/test123
> gulp

[09:27:55] Failed to load external module @babel/register
[09:27:55] Failed to load external module babel-register
[09:27:55] Failed to load external module babel-core/register
[09:27:55] Failed to load external module babel/register
[09:27:55] Local gulp not found in ~/Documents/sites/test123
[09:27:55] Try running: npm install gulp
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `gulp`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/alexcrisan/.npm/_logs/2018-12-26T14_27_55_973Z-debug.log

我按照错误代码安装一饮而尽,并得到这样的:

Alexandrus-MacBook-Pro-2:test123 alexcrisan$ npm install gulp
npm ERR! code 1
npm ERR! Command failed: /usr/bin/git checkout 4.0
npm ERR! error: pathspec '4.0' did not match any file(s) known to git.
npm ERR! 

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/alexcrisan/.npm/_logs/2018-12-26T15_03_01_008Z-debug.log

我发现了一些类似的答案,网上也没有找到解决这个不挖自己变成更加混乱的简单方法。

运行Mac OS莫哈韦(最新)。

谢谢!

gulp npm-install zurb-foundation-6 npm-start
1个回答
0
投票

一饮而尽的git的版本名称已经从4.0更改为V4.0.0,这意味着混帐找不到节点模块进行安装。

如果你打开你的package.json,你应该看到类似这样的:

"gulp": "github:gulpjs/gulp#4.0",

将其替换为:

"gulp": "github:gulpjs/gulp#v4.0.0",

然后删除您的节点模块文件夹,然后重新安装,它现在应该运行正常。

我知道你的感受,这让我困惑了一段时间。要解决它,我看了一下发布的版本在github上(https://github.com/gulpjs/gulp/releases)和使用的地方是什么在那里的V4.0.0版本。

© www.soinside.com 2019 - 2024. All rights reserved.