Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Не собирается на node 10 #235

Open
jt3k opened this issue May 31, 2018 · 11 comments
Open

Не собирается на node 10 #235

jt3k opened this issue May 31, 2018 · 11 comments

Comments

@jt3k
Copy link
Contributor

jt3k commented May 31, 2018

node v10.1.0
npm v6.1.0
os: macos sierra 10.12.6

Вот лог установки и запуска(команды начинаются с символа ):

/tmp
❯ git clone https://github.com/CSSSR/csssr-project-template.git new-project && cd new-project

Cloning into 'new-project'...
remote: Counting objects: 2459, done.
remote: Total 2459 (delta 0), reused 0 (delta 0), pack-reused 2459
Receiving objects: 100% (2459/2459), 1.76 MiB | 1.25 MiB/s, done.
Resolving deltas: 100% (1193/1193), done.

/tmp/new-project master
❯ npm i
npm WARN deprecated babel@6.23.0: In 6.x, the babel package has been deprecated in favor of babel-cli. Check https://opencollective.com/babel to support the Babel maintainers
npm WARN deprecated babel-preset-es2015@6.24.1: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated babel-preset-es2015@6.3.13: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated jade@1.9.2: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated transformers@2.1.0: Deprecated, use jstransformer
npm WARN deprecated constantinople@3.0.2: Please update to at least constantinople 3.1.1
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated uws@9.14.0: stop using this version
npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js

> fsevents@1.2.4 install /private/tmp/new-project/node_modules/fsevents
> node install

[fsevents] Success: "/private/tmp/new-project/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

> uws@9.14.0 install /private/tmp/new-project/node_modules/uws
> node-gyp rebuild > build_log.txt 2>&1 || exit 0


> husky@0.11.9 install /private/tmp/new-project/node_modules/husky
> node ./bin/install.js

husky
setting up hooks in .git/hooks
done


> spawn-sync@1.0.15 postinstall /private/tmp/new-project/node_modules/spawn-sync
> node postinstall


> spritesmith-dir-checker@1.0.1 postinstall /private/tmp/new-project/node_modules/spritesmith-dir-checker
> npm run build


> spritesmith-dir-checker@1.0.1 build /private/tmp/new-project/node_modules/spritesmith-dir-checker
> babel index.js -d dist

index.js -> dist/index.js
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN expose-loader@0.7.5 requires a peer of webpack@^2.0.0 || ^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.

added 1432 packages from 734 contributors and audited 12262 packages in 61.976s
found 22 vulnerabilities (14 low, 2 moderate, 6 high)
  run `npm audit fix` to fix them, or `npm audit` for details

/tmp/new-project master 1m 2s
❯ npm start

> csssr-project-template@0.26.2 start /private/tmp/new-project
> gulp --debug

[11:13:17] Failed to load external module @babel/register
[11:13:17] Requiring external module babel-register
[11:13:17] Node flags detected: --debug
[11:13:17] Respawned to PID: 2136
(node:2136) [DEP0062] DeprecationWarning: `node --debug` and `node --debug-brk` are invalid. Please use `node --inspect` or `node --inspect-brk` instead.
npm ERR! code ELIFECYCLE
npm ERR! errno 9
npm ERR! csssr-project-template@0.26.2 start: `gulp --debug`
npm ERR! Exit status 9
npm ERR!
npm ERR! Failed at the csssr-project-template@0.26.2 start 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!     /Users/jt3k/.npm/_logs/2018-05-31T08_13_18_001Z-debug.log

Данная задача связанна с закрытой ранее #229

@veremey
Copy link

veremey commented May 31, 2018

Хочу быть в курсе решения.

@v1z
Copy link
Member

v1z commented May 31, 2018

@veremey на node 8-9 версии не получилось завести?

@veremey
Copy link

veremey commented May 31, 2018

Как откачусь к node 9, сделаю попытку - отпишусь.
Часа через 3-4 смогу.

@veremey
Copy link

veremey commented May 31, 2018

Переустановил ноду
node -v -> 8.11.2 ,
переустановил шаблон в папку.
npm i отрабатывал очень долго и завис на стоках

uws@9.14.0 install F:\github\new-project\node_modules\uws
node-gyp rebuild > build_log.txt 2>&1 || exit 0

подождал 20 мин. и прекратил ожидание двойным ctrl+c
npm start - запустил шаблон.

@v1z , @jt3k , @dzhiriki спасибо!

@KushnerMikalai
Copy link

Так что делать то?) На node 10 все равно не ставится, откатываться не хочется.

@v1z
Copy link
Member

v1z commented Nov 12, 2018

@KushnerMikalai попробуйте так

@KushnerMikalai
Copy link

@v1z спасибо, все теперь работает.

@nikolay-pashchenko
Copy link

Мне вышеописанное, к сожалению, не совсем помогло. Но я нашёл следующее решение, возможно, кому-то поможет. Нужно внести правки в package.json, как написал выше v1z, версию node я зафиксировал на 10.5.0, а версию gulp на 3.9.0 (для этого уберите ^ в package.json, чтобы было так "gulp": "3.9.0",), потому что в 3.9.1 ошибка воспроизводится, а в 3.9.0 - нет. Не забудьте удалить package-lock.json, yarn.lock и node_modules, если уже производили установку. После этого сделайте yarn install.

@fabysshk
Copy link

fabysshk commented Nov 7, 2019

вообще не работает и плюс ошибка fs.27... const {Math} not found.... бред а не сборка

@grantand
Copy link

А что теперь делать у кого node 12 ? Куда откатываться? К 10-ке?

@jt3k
Copy link
Contributor Author

jt3k commented Nov 27, 2019

Надо просто по новой всё переписать .. а эту сборку выкинуть.
У меня было что-то подобное с использованием parcel но без свг-спрайтов, ретины и прочего

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants