LinuxForum.Fans
Тема

Ошибка при использовании Yeoman

Автор: karyan40024 42 сообщений 1390 просмотров В конец обсуждения ↓
#426149
Rizado написал:

Вы что, сделали chmod в домашней папке, а не в папке с конфигами???

ага ) все исправил щас сделаю там где надо

#426150

"Rizado" написал:
chmod 755 test
В таком случае уж [console=inline]chmod 755 ~/*[/console]
#426151

так должно быть ?

[console]karyan@karyan-nk ~ $ cd ~/.config/configstore
karyan@karyan-nk ~/.config/configstore $ ls -l
total 12
-rw------- 1 root root 2 Nov 3 22:11 bower-github.json
-rwxrwxrwx 1 root root 29 Nov 3 21:51 insight-yo.json
-rw------- 1 root root 55 Nov 3 22:23 update-notifier-npm.json
karyan@karyan-nk ~/.config/configstore $ sudo chown karyan:karyan *
[sudo] password for karyan:
karyan@karyan-nk ~/.config/configstore $ sudo chmod 666 *
karyan@karyan-nk ~/.config/configstore $ ls -l
total 12
-rw-rw-rw- 1 karyan karyan 2 Nov 3 22:11 bower-github.json
-rw-rw-rw- 1 karyan karyan 29 Nov 3 21:51 insight-yo.json
-rw-rw-rw- 1 karyan karyan 55 Nov 3 22:23 update-notifier-npm.json
[/console]

#426152

"karyan40024" написал:
так должно быть ?
Оно.
#426153

DiabloPC написал:
[quote="karyan40024"]так должно быть ?
Оно.[/quote]

опять попробовал yo meanjs и та же ошибка что вначале
#426154

karyan40024, Вот это тоже осталось??

Error: EACCES: permission denied, open '/home/karyan/.config/configstore/insight-yo.json'
You don't have access to this file.
#426155
DiabloPC написал:
karyan40024, Вот это тоже осталось??
Error: EACCES: permission denied, open '/home/karyan/.config/configstore/insight-yo.json'
You don't have access to this file.

ага так все же из-за этого )

да и еще до того как я поменял владельца у меня в консоли все было белым а файл insight-yo.json был жирным и зеленым

#426156

karyan40024, Дайка, все-же, ему права 777....
Добавлено: 4th Nov 2017 6:02:55 pm

И кста, посмотри еще на права самого каталога ~/.config/configstore, а точнее на его владельца

#426157
DiabloPC написал:
karyan40024, Дайка, все-же, ему права 777....
Добавлено: 4th Nov 2017 6:02:55 pm

И кста, посмотри еще на права самого каталога ~/.config/configstore, а точнее на его владельца

777 не помог ,, а в консоли владельца каталога не показывает нo в Properties > Permissions - Owner: root

#426158

"karyan40024" написал:
а в консоли права каталога не показывает
Как это не показует???
[console]dcrp@linux-mi7j:~> ls -l ./.config | grep ^d
drwxr-xr-x 2 dcrp users 4096 Nov 4 16:05 akonadi
drwxr-xr-x 2 dcrp users 4096 Nov 2 06:38 autostart
drwxr-xr-x 2 dcrp users 4096 Oct 26 20:43 autostart-scripts
drwxr-xr-x 8 dcrp users 4096 Oct 8 21:18 cairo-dock
drwxr-xr-x 3 dcrp users 4096 Oct 26 09:40 cinnamon-session
drwx------ 3 dcrp users 4096 Oct 15 20:28 compiz
drwxr-xr-x 2 dcrp users 4096 Nov 4 17:05 dconf
drwxr-xr-x 3 dcrp users 4096 Nov 2 01:37 edi
drwx------ 2 dcrp users 4096 Aug 26 01:46 enchant
drwxr-xr-x 2 dcrp users 4096 Nov 2 09:23 enjoy
drwxr-xr-x 3 dcrp users 4096 Oct 24 08:48 entangle
[/console]
#426159

аа я по другому сделал ))) сейчас у всех владелец karyan только этот root

[console]drwxr-xr-x 2 root root 4096 Nov 4 18:53 configstore
[/console]

нужно менять ? ))

#426160

"karyan40024" написал:
Owner: root
меняй на своего пользователя
[console=inline]sudo chown karyan:karyan ~/.config/configstore && chmod 777 ~/.config/configstore [/console]
#426161

DiabloPC написал:
[quote="karyan40024"] Owner: root
меняй на своего пользователя
[console=inline]sudo chown karyan:karyan ~/.config/configstore && chmod 777 ~/.config/configstore [/console][/quote]

получилось ,, спасибо огромное )
#426162

karyan40024, Да незачто)
А на будущее: поменьше играйся с sudo

#426163
DiabloPC написал:
karyan40024, Да незачто)
А на будущее: поменьше играйся с sudo

да если бы sudo не было вабще круто было бы ))

сейчас с yo все нормально теперь проблемы с npm %)

#426164

Это тебе не шахматы!
Тут думать нужно.

================

Что там с npm?

#426165
Marley написал:
Это тебе не шахматы!
Тут думать нужно.

================

Что там с npm?

ну пишу команду [console]$ yo meanjs[/console] все устанавливается в папке mean и с того момента когда должна сработать команда npm install выводится ошибка
[console]
Error: Command failed: cd mean && npm install
[/console]

и после этого куча ошибок незнаю даже отправить сюда или нет ))

#426166

Можно обернуть код ошибок в блок spoiler.

Показать


так

#426167

вот ошибка если можно так сказать )

Показать

[console]karyan@karyan-nk ~ $ cd test
karyan@karyan-nk ~/test $ yo meanjs
You're using the official MEAN.JS generator.
? What mean.js version would you like to generate? 0.4.2
0.4.2
? In which folder would you like the project to be generated? This can be change
d later. mean
Cloning the MEAN repo.......
? What would you like to call your application? myApp
? How would you describe your application? Full-Stack JavaScript with MongoDB, E
xpress, AngularJS, and Node.js
? How would you describe your application in comma seperated key words? MongoDB,
Express, AngularJS, Node.js
? What is your company/author name? karyan
? Would you like to generate the article example CRUD module? No
? Would you like to generate the chat example module? No
Running npm install for you....
This may take a couple minutes.
Error: Command failed: cd mean && npm install
npm WARN deprecated bower@1.8.2: ...psst! Your project can stop working at any moment because its dependencies can change. Prevent this by migrating to Yarn: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
npm WARN deprecated crypto@0.0.3: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
npm WARN deprecated nodemailer@1.11.0: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN deprecated phantomjs@2.1.7: Package renamed to phantomjs-prebuilt. Please update 'phantomjs' package references to 'phantomjs-prebuilt'
npm WARN deprecated swig@1.4.2: This package is no longer maintained
npm WARN deprecated graceful-fs@2.0.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
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 connect@2.30.2: connect 2.x series is deprecated
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 mongodb@2.0.49: Please upgrade to 2.2.19 or higher
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated mongodb@2.0.55: Please upgrade to 2.2.19 or higher
npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated minimatch@1.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
node-pre-gyp ERR! Tried to download(404): https://node-inspector.s3.amazonaws.com/debug/v0.7.7/node-v57-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for v8-debug@0.7.7 and node@8.9.0 (node-v57 ABI, glibc) (falling back to source compile with node-gyp)
../src/debug.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE nodex::Debug::Call(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/debug.cc:38:20: warning: ‘static v8::MaybeLocal<v8::Value> v8::Debug::Call(v8::Local<v8::Context>, v8::Local<v8::Function>, v8::Local<v8::Value>)’ is deprecated: No longer supported [-Wdeprecated-declarations]
v8::Debug::Call(fn);
^
In file included from /home/karyan/.node-gyp/8.9.0/include/node/v8.h:26:0,
from /home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:8,
from ../src/debug.cc:1:
/home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:193:42: note: declared here
static MaybeLocal<Value> Call(
^
/home/karyan/.node-gyp/8.9.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/debug.cc:38:27: error: no matching function for call to ‘v8::Debug::Call(v8::Local<v8::Function>&)’
v8::Debug::Call(fn);
^
In file included from /home/karyan/.node-gyp/8.9.0/include/node/v8.h:26:0,
from /home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:8,
from ../src/debug.cc:1:
/home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:193:42: note: candidate: static v8::MaybeLocal<v8::Value> v8::Debug::Call(v8::Local<v8::Context>, v8::Local<v8::Function>, v8::Local<v8::Value>)
static MaybeLocal<Value> Call(
^
/home/karyan/.node-gyp/8.9.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
/home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:193:42: note: candidate expects 3 arguments, 1 provided
static MaybeLocal<Value> Call(
^
/home/karyan/.node-gyp/8.9.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/debug.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE nodex::Debug::SendCommand(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/debug.cc:46:45: warning: ‘static v8::Local<v8::Context> v8::Debug::GetDebugContext(v8::Isolate*)’ is deprecated: Use v8-inspector [-Wdeprecated-declarations]
Isolate* debug_isolate = v8::Debug::GetDebugContext()->GetIsolate();
^
In file included from /home/karyan/.node-gyp/8.9.0/include/node/v8.h:26:0,
from /home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:8,
from ../src/debug.cc:1:
/home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:209:39: note: declared here
static Local<Context> GetDebugContext(Isolate* isolate));
^
/home/karyan/.node-gyp/8.9.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/debug.cc:46:61: error: no matching function for call to ‘v8::Debug::GetDebugContext()’
Isolate* debug_isolate = v8::Debug::GetDebugContext()->GetIsolate();
^
In file included from /home/karyan/.node-gyp/8.9.0/include/node/v8.h:26:0,
from /home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:8,
from ../src/debug.cc:1:
/home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:209:39: note: candidate: static v8::Local<v8::Context> v8::Debug::GetDebugContext(v8::Isolate*)
static Local<Context> GetDebugContext(Isolate* isolate));
^
/home/karyan/.node-gyp/8.9.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
/home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:209:39: note: candidate expects 1 argument, 0 provided
static Local<Context> GetDebugContext(Isolate* isolate));
^
/home/karyan/.node-gyp/8.9.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/debug.cc:48:20: warning: ‘static void v8::Debug::SendCommand(v8::Isolate*, const uint16_t*, int, v8::Debug::ClientData*)’ is deprecated: No longer supported [-Wdeprecated-declarations]
v8::Debug::SendCommand(debug_isolate, *command, command.length());
^
In file included from /home/karyan/.node-gyp/8.9.0/include/node/v8.h:26:0,
from /home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:8,
from ../src/debug.cc:1:
/home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:170:29: note: declared here
static void SendCommand(Isolate* isolate,
^
/home/karyan/.node-gyp/8.9.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/debug.cc:48:73: warning: ‘static void v8::Debug::SendCommand(v8::Isolate*, const uint16_t*, int, v8::Debug::ClientData*)’ is deprecated: No longer supported [-Wdeprecated-declarations]
v8::Debug::SendCommand(debug_isolate, *command, command.length());
^
In file included from /home/karyan/.node-gyp/8.9.0/include/node/v8.h:26:0,
from /home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:8,
from ../src/debug.cc:1:
/home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:170:29: note: declared here
static void SendCommand(Isolate* isolate,
^
/home/karyan/.node-gyp/8.9.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/debug.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE nodex::Debug::RunScript(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/debug.cc:61:51: warning: ‘static v8::Local<v8::Context> v8::Debug::GetDebugContext(v8::Isolate*)’ is deprecated: Use v8-inspector [-Wdeprecated-declarations]
Local<Context> debug_context = v8::Debug::GetDebugContext();
^
In file included from /home/karyan/.node-gyp/8.9.0/include/node/v8.h:26:0,
from /home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:8,
from ../src/debug.cc:1:
/home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:209:39: note: declared here
static Local<Context> GetDebugContext(Isolate* isolate));
^
/home/karyan/.node-gyp/8.9.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/debug.cc:61:67: error: no matching function for call to ‘v8::Debug::GetDebugContext()’
Local<Context> debug_context = v8::Debug::GetDebugContext();
^
In file included from /home/karyan/.node-gyp/8.9.0/include/node/v8.h:26:0,
from /home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:8,
from ../src/debug.cc:1:
/home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:209:39: note: candidate: static v8::Local<v8::Context> v8::Debug::GetDebugContext(v8::Isolate*)
static Local<Context> GetDebugContext(Isolate* isolate));
^
/home/karyan/.node-gyp/8.9.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
/home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:209:39: note: candidate expects 1 argument, 0 provided
static Local<Context> GetDebugContext(Isolate* isolate));
^
/home/karyan/.node-gyp/8.9.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/debug.cc:65:11: error: ‘GetMirror’ is not a member of ‘v8::Debug’
v8::Debug::GetMirror(info.GetIsolate()->GetCurrentContext(), info[0]);
^
../src/debug.cc:66:38: warning: ‘static v8::Local<v8::Context> v8::Debug::GetDebugContext(v8::Isolate*)’ is deprecated: Use v8-inspector [-Wdeprecated-declarations]
debug_context = v8::Debug::GetDebugContext();
^
In file included from /home/karyan/.node-gyp/8.9.0/include/node/v8.h:26:0,
from /home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:8,
from ../src/debug.cc:1:
/home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:209:39: note: declared here
static Local<Context> GetDebugContext(Isolate* isolate));
^
/home/karyan/.node-gyp/8.9.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/debug.cc:66:54: error: no matching function for call to ‘v8::Debug::GetDebugContext()’
debug_context = v8::Debug::GetDebugContext();
^
In file included from /home/karyan/.node-gyp/8.9.0/include/node/v8.h:26:0,
from /home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:8,
from ../src/debug.cc:1:
/home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:209:39: note: candidate: static v8::Local<v8::Context> v8::Debug::GetDebugContext(v8::Isolate*)
static Local<Context> GetDebugContext(Isolate* isolate));
^
/home/karyan/.node-gyp/8.9.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
/home/karyan/.node-gyp/8.9.0/include/node/v8-debug.h:209:39: note: candidate expects 1 argument, 0 provided
static Local<Context> GetDebugContext(Isolate* isolate));
^
/home/karyan/.node-gyp/8.9.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
make: *** [Release/obj.target/debug/src/debug.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/karyan/test/mean/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.8.0-53-generic
gyp ERR! command "/usr/local/bin/node" "/home/karyan/test/mean/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/karyan/test/mean/node_modules/v8-debug/build/debug/v0.7.7/node-v57-linux-x64/debug.node" "--module_name=debug" "--module_path=/home/karyan/test/mean/node_modules/v8-debug/build/debug/v0.7.7/node-v57-linux-x64"
gyp ERR! cwd /home/karyan/test/mean/node_modules/v8-debug
gyp ERR! node -v v8.9.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /home/karyan/test/mean/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/karyan/test/mean/node_modules/v8-debug/build/debug/v0.7.7/node-v57-linux-x64/debug.node --module_name=debug --module_path=/home/karyan/test/mean/node_modules/v8-debug/build/debug/v0.7.7/node-v57-linux-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/karyan/test/mean/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:925:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Linux 4.8.0-53-generic
node-pre-gyp ERR! command "/usr/local/bin/node" "/home/karyan/test/mean/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/karyan/test/mean/node_modules/v8-debug
node-pre-gyp ERR! node -v v8.9.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
npm WARN mongodb-core@1.2.31 requires a peer of kerberos@~0.0 but none is installed. You must install peer dependencies yourself.
npm WARN mongodb-core@1.2.24 requires a peer of kerberos@~0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! v8-debug@0.7.7 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the v8-debug@0.7.7 install 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! /home/karyan/.npm/_logs/2017-11-04T16_12_00_839Z-debug.log

at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
[/console]
#426168

Я так понимаю, что все зависимости очень устарели. Есть ссылки на ресурсы которые уже недоступны.
Ничего не поделать, по крайней мере, без определенных усилий.

==========

Предлагаю отказаться от MEAN и YoMan и самостоятельно настроить все, если это действительно нужно.

Какая вообще цель?

Войдите или зарегистрируйтесь, чтобы ответить.