npm install -g @aws-amplify/cli
failed due to the new version
output:
```
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated [email protected]: use String.prototype.padStart()
npm WARN deprecated [email protected]: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit https://github.com/lukeed/kleur/releases/tag/v3.0.0\ for migration path(s).
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated @okgrow/[email protected]: The Guild took over the maintenance of the package and it is now being published under "graphql-scalars" instead of "@okgrow/graphql-scalars". So you need to install graphql-scalars instead because this package is deprecated now.
npm WARN deprecated [email protected]: Use uuid module instead
/usr/local/bin/amplify -> /usr/local/lib/node_modules/@aws-amplify/cli/bin/amplify
[email protected] install /usr/local/lib/node_modules/@aws-amplify/cli/node_modules/kerberos
(node-gyp rebuild) || (exit 0)
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.13.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/kerberos/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/kerberos/.node-gyp'
gyp ERR! System Linux 4.15.0-1043-aws
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/@aws-amplify/cli/node_modules/kerberos
gyp ERR! node -v v10.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
[email protected] install /usr/local/lib/node_modules/@aws-amplify/cli/node_modules/fs-ext
node-gyp configure build
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.13.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/fs-ext/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/fs-ext/.node-gyp'
gyp ERR! System Linux 4.15.0-1043-aws
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /usr/local/lib/node_modules/@aws-amplify/cli/node_modules/fs-ext
gyp ERR! node -v v10.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
[email protected] install /usr/local/lib/node_modules/@aws-amplify/cli/node_modules/snappy
node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.13.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/snappy/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/snappy/.node-gyp'
gyp ERR! System Linux 4.15.0-1043-aws
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/@aws-amplify/cli/node_modules/snappy
gyp ERR! node -v v10.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
[email protected] install /usr/local/lib/node_modules/@aws-amplify/cli/node_modules/amplify-dynamodb-simulator
download --extract -o emulator https://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.zip
Error: EPERM: operation not permitted, utime 'emulator/DynamoDBLocal_lib/'
npm WARN [email protected] requires a peer of graphql-tag-pluck@^0.8.3 but none is installed. You must install peer dependencies yourself.
npm WARN @conduitvc/[email protected] requires a peer of leveldown@~1.4.3 but none is installed. You must install peer dependencies yourself.
npm WARN @conduitvc/[email protected] requires a peer of ioredis@^1.15.1 but none is installed. You must install peer dependencies yourself.
npm WARN @conduitvc/[email protected] requires a peer of mongodb@~2.1.4 but none is installed. You must install peer dependencies yourself.
npm WARN @graphql-modules/[email protected] requires a peer of reflect-metadata@^0.1.12 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/@aws-amplify/cli/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/@aws-amplify/cli/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/@aws-amplify/cli/node_modules/fs-ext):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp configure build
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/@aws-amplify/cli/node_modules/snappy):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: download --extract -o emulator https://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.zip
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.```
+1
Weโve seen the gyp issue for certain npm versions and adding the unsafe-perm parameter should help fix it - โnpm install -g @aws-amplify/cli --unsafe-perm=trueโ?
This command worked for me. if i don't use 'unsafe-perm=true' my installation was failing on optional packages. with the above command the apmlify cli continued installing ignoring the optional packages like gyp, fs-ext
I switched back to previous version. All good now.
Amplify team - you better cover the release to npm with some tests
On Thu, Aug 8, 2019, 20:07 Anant Rao notifications@github.com wrote:
This command worked for me. if i don't use 'unsafe-perm=true' my
installation was failing on optional packages. with the above command the
apmlify cli continued installing ignoring the optional packages like gyp,
fs-extโ
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/aws-amplify/amplify-cli/issues/1996?email_source=notifications&email_token=AAHVI6ZYIBTQAKALNZ376ATQDRHFLA5CNFSM4IKJ5EH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD34I7FY#issuecomment-519606167,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAHVI65QGMWZSWFRZR3GK5DQDRHFLANCNFSM4IKJ5EHQ
.
@lielran We are aware of this npm issue and working on the fix so that you don't have to use the --unsafe-perm parameter, but as a workaround as i mentioned above you can use npm install -g @aws-amplify/cli --unsafe-perm=true
for your installation to succeed.
Note: This issue is prevelant only in certain platform specific npm versions.
Ran in to the same issue, the --unsafe-perm=true
flag worked for me. There were still some installation errors but it did not cause the entire thing to fail and amplify-cli is usable.
Node v10.16.2
npm v6.10.3
MacOS 10.14.6
+1
+1
Mac OS: Darwin Kernel Version 18.6.0
npm: 6.9.0
node: v10.16.2
We have a fix for npm global install. Could you guys try to install the cli using the following command and see if it still fails to install
npm install -g @aws-amplify/cli@ddb-local-install-script
The @ddb-local-install-script version still fails for me. Log:
@kernwig it looks like those errors were for optional installations. Could you run amplify -v
and see whats the version you have installed
$ amplify -v
1.12.1-ddb-local-install-script.0
Looks like the installation was successful. Could you try to run the mock server on an existing project and see if that works as expected.
cd <project-root>
amplify mock
I don't have a working project. :-/
Not planning to use the new mock feature any time soon, so that doesn't bother me. Just saw my terminal bleeding ๐ค but see now that it was successful otherwise. I've seen gyp have problems installing before. ๐ข
I guess my quasi-problem is different than the others here, so I'll back out.
npm install -g @aws-amplify/cli@ddb-local-install-script isnt working
view the log error
logerr.txt
sudo npm install -g --unsafe-perm --verbose @aws-amplify/cli
worked for me.
I tried npm install -g @aws-amplify/cli --unsafe-perm=true
as suggested above, but I still see all the errors.
My versions:
$ amplify -v
1.12.0
$ node -v
v12.9.0
$ npm -v
6.10.3
$ defaults read loginwindow SystemVersionStampAsString # macOS
10.14.6
Despite all the errors, I was able to successfully run amplify status
, so it seems that basic functionality is at least unimpaired. I wonder what might be broken, though.
Same issue, Windows 10.
Ignore installation errors for optional dependencies: gyp, fs-ext
----------------------------------------
Successfully installed the Amplify CLI
----------------------------------------
My prompt said that Amplify-CLI was successfully installed without that options(gyp, fs-ext). Is is serious damage to use amplify cli? I hope that I could understand full subsequences of absence of these options.
Node version: 10.16.0
OS version: Windows 10 Pro
Amplify version: 1.12.0
Visual Studio Build Tool version: 2017 (and tried with 2015)
Python version: 3.7 (and tried with 2.7)
final prompt on installing @aws-amplify/cli:
npm WARN [email protected] requires a peer of graphql-tag-pluck@^0.8.3 but none is installed. You must install peer dependencies yourself.
npm WARN @conduitvc/[email protected] requires a peer of leveldown@~1.4.3 but none is installed. You must install peer dependencies yourself.
npm WARN @conduitvc/[email protected] requires a peer of ioredis@^1.15.1 but none is installed. You must install peer dependencies yourself.
npm WARN @conduitvc/[email protected] requires a peer of mongodb@~2.1.4 but none is installed. You must install peer dependencies yourself.
npm WARN @graphql-modules/[email protected] requires a peer of reflect-metadata@^0.1.12 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\@aws-amplify\cli\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\@aws-amplify\cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\@aws-amplify\cli\node_modules\fs-ext):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp configure build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\@aws-amplify\cli\node_modules\snappy):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\@aws-amplify\cli\node_modules\zmq):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
Same issue here.
How can we install an old version that works?
I have Similar issue
npm install -g npm
npm install --global --production windows-build-tools
// https://github.com/nodejs/node-gyp/issues/1195
choco upgrade python
choco upgrade nodejs
//------------------------------------------------------------------------------------------------------------
[email protected] install C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq
node-gyp rebuild
C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq>if not defined npm_config_node_gyp (node "C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
์ด ์๋ฃจ์
์ ํ๋ก์ ํธ๋ฅผ ํ ๋ฒ์ ํ๋์ฉ ๋น๋ํฉ๋๋ค. ๋ณ๋ ฌ ๋น๋๋ฅผ ์ฌ์ฉํ๋ ค๋ฉด "/m" ์ค์์น๋ฅผ ์ถ๊ฐํ์ธ์.
binding.cc
win_delay_load_hook.cc
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\node.h(655): warning C4819: ํ์ฌ ์ฝ๋ ํ์ด์ง(949)์์ ํ์ํ ์ ์๋ ๋ฌธ์๊ฐ ํ์ผ์ ๋ค์ด ์์ต๋๋ค. ๋ฐ์ดํฐ ๊ฐ ์์ค๋์ง ์๊ฒ ํ๋ ค๋ฉด ํด๋น ํ์ผ์ ์ ๋์ฝ๋ ํ์์ผ๋ก
์ ์ฅํ์ญ์์ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan_maybe_43_inl.h(88): error C2039: 'ForceSet': 'v8::Object'์ ๋ฉค๋ฒ๊ฐ ์๋
๋๋ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\v8.h(3369): note: 'v8::Object' ์ ์ธ์ ์ฐธ์กฐํ์ญ์์ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan_converters_43_inl.h(18): warning C4996: 'v8::Value::ToBoolean': d
eprecated๋ก ์ ์ธ๋์์ต๋๋ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\v8.h(2536): note: 'v8::Value::ToBoolean' ์ ์ธ์ ์ฐธ์กฐํ์ญ์์ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan_converters_43_inl.h(34): warning C4996: 'v8::Value::BooleanValue'
: deprecated๋ก ์ ์ธ๋์์ต๋๋ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\v8.h(2574): note: 'v8::Value::BooleanValue' ์ ์ธ์ ์ฐธ์กฐํ์ญ์์ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan_implementation_12_inl.h(107): error C2664: 'v8::MaybeLocal
Local
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan_implementation_12_inl.h(109): note: ์์ค ํ์์ ๊ฐ์ ธ์ฌ ์ ์๋ ์์ฑ์๊ฐ ์๊ฑฐ๋ ์์ฑ
์ ์ค๋ฒ๋ก๋ ํ์ธ์ด ๋ชจํธํฉ๋๋ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan_implementation_12_inl.h(345): error C2660: 'v8::StringObject::New
': ํจ์๋ 1๊ฐ์ ๋งค๊ฐ ๋ณ์๋ฅผ ์ฌ์ฉํ์ง ์์ต๋๋ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\v8.h(5394): note: 'v8::StringObject::New' ์ ์ธ์ ์ฐธ์กฐํ์ญ์์ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan_implementation_12_inl.h(345): error C2059: ๊ตฌ๋ฌธ ์ค๋ฅ: ')' (์์ค ํ์ผ ์ปดํ์ผ
์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan.h(816): warning C4996: 'node::MakeCallback': deprecated๋ก ์ ์ธ๋์์ต๋๋ค.
(์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\node.h(173): note: 'node::MakeCallback' ์ ์ธ์ ์ฐธ์กฐํ์ญ์์ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan.h(830): warning C4996: 'node::MakeCallback': deprecated๋ก ์ ์ธ๋์์ต๋๋ค.
(์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\node.h(166): note: 'node::MakeCallback' ์ ์ธ์ ์ฐธ์กฐํ์ญ์์ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan.h(844): warning C4996: 'node::MakeCallback': deprecated๋ก ์ ์ธ๋์์ต๋๋ค.
(์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\node.h(159): note: 'node::MakeCallback' ์ ์ธ์ ์ฐธ์กฐํ์ญ์์ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan.h(890): error C2661: 'v8::Value::ToString': ์ค๋ฒ๋ก๋๋ ํจ์์์ 0 ๊ฐ์ ๋งค๊ฐ ๋ณ์๋ฅผ
์ฌ์ฉํ์ง ์์ต๋๋ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan.h(900): error C2664: 'int v8::String::WriteUtf8(v8::Isolate *,cha
r *,int,int *,int) const': ์ธ์ 1์(๋ฅผ) 'char *'์์ 'v8::Isolate *'(์ผ)๋ก ๋ณํํ ์ ์์ต๋๋ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify
\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan.h(900): note: ๊ฐ๋ฆฌํจ ํ์์ด ๊ด๋ จ์ด ์์ต๋๋ค. ๋ณํํ๋ ค๋ฉด reinterpret_cast, C ์คํ์ผ ์บ
์คํธ ๋๋ ํจ์ ์คํ์ผ ์บ์คํธ๊ฐ ํ์ํฉ๋๋ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan.h(1371): warning C4996: 'v8::Object::Get': deprecated๋ก ์ ์ธ๋์์ต๋๋ค. (
์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\v8.h(3429): note: 'v8::Object::Get' ์ ์ธ์ ์ฐธ์กฐํ์ญ์์ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan.h(1372): warning C4996: 'v8::Object::Get': deprecated๋ก ์ ์ธ๋์์ต๋๋ค. (
์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\v8.h(3429): note: 'v8::Object::Get' ์ ์ธ์ ์ฐธ์กฐํ์ญ์์ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan.h(1403): warning C4996: 'v8::Object::Get': deprecated๋ก ์ ์ธ๋์์ต๋๋ค. (
์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\v8.h(3429): note: 'v8::Object::Get' ์ ์ธ์ ์ฐธ์กฐํ์ญ์์ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan.h(1409): warning C4996: 'v8::Object::Get': deprecated๋ก ์ ์ธ๋์์ต๋๋ค. (
์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\v8.h(3429): note: 'v8::Object::Get' ์ ์ธ์ ์ฐธ์กฐํ์ญ์์ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan.h(1446): warning C4996: 'v8::Object::Get': deprecated๋ก ์ ์ธ๋์์ต๋๋ค. (
์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\v8.h(3429): note: 'v8::Object::Get' ์ ์ธ์ ์ฐธ์กฐํ์ญ์์ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan.h(1457): warning C4996: 'node::MakeCallback': deprecated๋ก ์ ์ธ๋ ์์ต๋๋ค
. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\node.h(173): note: 'node::MakeCallback' ์ ์ธ์ ์ฐธ์กฐํ์ญ์์ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan.h(1518): warning C4996: 'v8::Object::Set': deprecated๋ก ์ ์ธ๋์์ต๋๋ค. (
์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\v8.h(3371): note: 'v8::Object::Set' ์ ์ธ์ ์ฐธ์กฐํ์ญ์์ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan.h(1524): warning C4996: 'v8::Object::Set': deprecated๋ก ์ ์ธ๋์์ต๋๋ค. (
์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\v8.h(3371): note: 'v8::Object::Set' ์ ์ธ์ ์ฐธ์กฐํ์ญ์์ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan.h(1530): warning C4996: 'v8::Object::Set': deprecated๋ก ์ ์ธ๋์์ต๋๋ค. (
์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\v8.h(3380): note: 'v8::Object::Set' ์ ์ธ์ ์ฐธ์กฐํ์ญ์์ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan.h(1536): warning C4996: 'v8::Object::Get': deprecated๋ก ์ ์ธ๋์์ต๋๋ค. (
์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\v8.h(3425): note: 'v8::Object::Get' ์ ์ธ์ ์ฐธ์กฐํ์ญ์์ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan.h(1542): warning C4996: 'v8::Object::Get': deprecated๋ก ์ ์ธ๋์์ต๋๋ค. (
์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\v8.h(3425): note: 'v8::Object::Get' ์ ์ธ์ ์ฐธ์กฐํ์ญ์์ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan.h(1547): warning C4996: 'v8::Object::Get': deprecated๋ก ์ ์ธ๋์์ต๋๋ค. (
์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\v8.h(3429): note: 'v8::Object::Get' ์ ์ธ์ ์ฐธ์กฐํ์ญ์์ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan_object_wrap.h(24): error C2039: 'IsNearDeath': 'Nan::Persistent
with
[
T=v8::Object
] (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan.h(1436): note: 'Nan::Persistent
with
[
T=v8::Object
] (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan_object_wrap.h(67): warning C4996: 'v8::PersistentBase
::MarkIndependent': deprecated๋ก ์ ์ธ๋์์ต๋๋ค. (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc) [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxpro
j]
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\v8.h(563): note: 'v8::PersistentBase
.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan_object_wrap.h(124): error C2039: 'IsNearDeath': 'Nan::Persistent<
v8::Object,v8::NonCopyablePersistentTraits
with
[
T=v8::Object
] (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\node_modules\nan\nan.h(1436): note: 'Nan::Persistent
with
[
T=v8::Object
] (์์ค ํ์ผ ์ปดํ์ผ ์ค ..\binding.cc)
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\binding.cc(999): warning C4297: 'zmq::Socket::IncomingMessage::MessageReference::~Mess
ageReference': ํจ์๋ ์์ธ๋ฅผ Throwํ์ง ์๋๋ก ์ง์ ๋์์ผ๋ ์์ธ๋ฅผ Throwํ์ต๋๋ค. [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\binding.cc(999): note: ์๋ฉธ์ ๋๋ ๋นํ ๋น์๋ ๊ฐ๋ฅํ๋ฉด ์์์ ์ผ๋ก throw๋์ง ์๋ ์์ธ ์ฌ์์ ์ฌ์ฉํฉ๋๋ค.
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\binding.cc(1205): warning C4297: 'zmq::Socket::OutgoingMessage::~OutgoingMessage': ํจ์๋
์์ธ๋ฅผ Throwํ์ง ์๋๋ก ์ง์ ๋์์ผ๋ ์์ธ๋ฅผ Throwํ์ต๋๋ค. [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\binding.cc(1205): note: ์๋ฉธ์ ๋๋ ๋นํ ๋น์๋ ๊ฐ๋ฅํ๋ฉด ์์์ ์ผ๋ก throw๋์ง ์๋ ์ ์ธ ์ฌ์์ ์ฌ์ฉํฉ๋๋ค.
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\binding.cc(1285): warning C4996: 'v8::Object::Get': deprecated๋ก ์ ์ธ๋์์ต๋๋ค. [C:\Users\psy
renpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\v8.h(3429): note: 'v8::Object::Get' ์ ์ธ์ ์ฐธ์กฐํ์ญ์์ค.
c:\users\psyrenpark\appdata\roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\binding.cc(1286): warning C4996: 'v8::Object::Get': deprecated๋ก ์ ์ธ๋์์ต๋๋ค. [C:\Users\psy
renpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
c:\users\psyrenpark\appdata\local\node-gyp\cache\12.9.1\include\node\v8.h(3429): note: 'v8::Object::Get' ์ ์ธ์ ์ฐธ์กฐํ์ญ์์ค.
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe
failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:196:23)
gyp ERR! stack at ChildProcess.emit (events.js:209:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\zmq
gyp ERR! node -v v12.9.1
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
@aws-amplify/[email protected] postinstall C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli
node scripts/post-install.js
Ignore installation errors for optional dependencies: gyp, fs-ext
Javascript Getting Started - https://aws-amplify.github.io/docs/js/start
Android Getting Started - https://aws-amplify.github.io/docs/android/start
iOS Getting Started - https://aws-amplify.github.io/docs/ios/start
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): EPERM: operation not permitted, lstat 'C:\Users\psyrenpark\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\fsevents\node_modules'
npm WARN @conduitvc/[email protected] requires a peer of leveldown@~1.4.3 but none is installed. You must install peer dependencies yourself.
npm WARN @conduitvc/[email protected] requires a peer of ioredis@^1.15.1 but none is installed. You must install peer dependencies yourself.
npm WARN @conduitvc/[email protected] requires a peer of mongodb@~2.1.4 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\@aws-amplify\cli\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\@aws-amplify\cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\@aws-amplify\cli\node_modules\fs-ext):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp configure build
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\@aws-amplify\cli\node_modules\snappy):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\@aws-amplify\cli\node_modules\zmq):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
I also encountered the โclass v8::Objectโ has no member named โForceSetโ
error.
With following tree:
โโโฌ @aws-amplify/[email protected]
โ โโโฌ [email protected]
โ โโโฌ [email protected]
โ โโโฌ @conduitvc/[email protected]
โ โโโฌ [email protected]
โ โโโฌ [email protected]
โ โโโ UNMET OPTIONAL DEPENDENCY snappy@^5.0.5
we can deduce that while kafka-node has a newer version with a fix https://github.com/SOHU-Co/kafka-node/pull/760 applied, https://github.com/mcollina/ascoltatori/issues/195 hasn't progressed to use a newer kafka-node.
Hey guys, we released a version of the CLI - v3.14.0 which fixes the npm warnings and the associated errors during npm/yarn installations. It also takes care of the EOL dependency issues. Please install the latest version of the CLI - npm install -g @aws-amplify/cli
and let us know if you're still facing issues with it.
Solution from https://github.com/aws-amplify/amplify-cli/issues/1996#issuecomment-519625952 Documented on StackOverflow.
Sudo makes better since so that it prompts for a device password and overrides the permission errors. Genius!
Most helpful comment
sudo npm install -g --unsafe-perm --verbose @aws-amplify/cli
worked for me.