Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install -g @aws-amplify/cli error #1996

Closed
lielran opened this issue Aug 8, 2019 · 25 comments
Closed

npm install -g @aws-amplify/cli error #1996

lielran opened this issue Aug 8, 2019 · 25 comments
Assignees
Labels
bug Something isn't working installation Issues tied to installation of the CLI

Comments

@lielran
Copy link

lielran commented Aug 8, 2019

npm install -g @aws-amplify/cli failed due to the new version

output:

npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm WARN deprecated kleur@2.0.2: 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 minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated @okgrow/graphql-scalars@0.4.6: 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 node-uuid@1.4.8: Use uuid module instead
/usr/local/bin/amplify -> /usr/local/lib/node_modules/@aws-amplify/cli/bin/amplify

> kerberos@0.0.24 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 

> fs-ext@0.5.0 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 

> snappy@5.0.5 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 

> amplify-dynamodb-simulator@0.2.0 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 graphql-toolkit@0.5.0 requires a peer of graphql-tag-pluck@^0.8.3 but none is installed. You must install peer dependencies yourself.
npm WARN @conduitvc/mosca@2.8.3 requires a peer of leveldown@~1.4.3 but none is installed. You must install peer dependencies yourself.
npm WARN @conduitvc/mosca@2.8.3 requires a peer of ioredis@^1.15.1 but none is installed. You must install peer dependencies yourself.
npm WARN @conduitvc/mosca@2.8.3 requires a peer of mongodb@~2.1.4 but none is installed. You must install peer dependencies yourself.
npm WARN @graphql-modules/di@0.7.5 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: fsevents@1.2.9 (node_modules/@aws-amplify/cli/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.0.7 (node_modules/@aws-amplify/cli/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs-ext@0.5.0 (node_modules/@aws-amplify/cli/node_modules/fs-ext):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs-ext@0.5.0 install: `node-gyp configure build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: snappy@5.0.5 (node_modules/@aws-amplify/cli/node_modules/snappy):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: snappy@5.0.5 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! amplify-dynamodb-simulator@0.2.0 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 amplify-dynamodb-simulator@0.2.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.```
@MatejBalantic
Copy link

+1

@kaustavghosh06
Copy link
Contributor

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’?

@anantrao07
Copy link

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

@SwaySway SwaySway added installation Issues tied to installation of the CLI question General question labels Aug 8, 2019
@lielran
Copy link
Author

lielran commented Aug 8, 2019 via email

@kaustavghosh06
Copy link
Contributor

kaustavghosh06 commented Aug 8, 2019

@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.

@morficus
Copy link

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

@GustavoEdinger
Copy link
Contributor

+1

@svpdmn
Copy link

svpdmn commented Aug 15, 2019

+1

Mac OS: Darwin Kernel Version 18.6.0
npm: 6.9.0
node: v10.16.2

yuth referenced this issue in yuth/amplify-cli Aug 15, 2019
Updated install script to install dynamodb local inside user home directory instead of package root

partial fix#1996
@yuth
Copy link
Contributor

yuth commented Aug 15, 2019

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

@kernwig
Copy link

kernwig commented Aug 15, 2019

The @ddb-local-install-script version still fails for me. Log:

amplify-failure.txt

@yuth
Copy link
Contributor

yuth commented Aug 15, 2019

@kernwig it looks like those errors were for optional installations. Could you run amplify -v and see whats the version you have installed

@kernwig
Copy link

kernwig commented Aug 15, 2019

$ amplify -v
1.12.1-ddb-local-install-script.0

@yuth
Copy link
Contributor

yuth commented Aug 15, 2019

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

@kernwig
Copy link

kernwig commented Aug 15, 2019

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.

@PrasoonDavid
Copy link

npm install -g @aws-amplify/cli@ddb-local-install-script isnt working
view the log error
logerr.txt

@kaustavghosh06 kaustavghosh06 removed their assignment Aug 16, 2019
@preetamjadakar
Copy link

sudo npm install -g --unsafe-perm --verbose @aws-amplify/cli
worked for me.

@Simbul
Copy link

Simbul commented Aug 25, 2019

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.

@roeniss
Copy link

roeniss commented Aug 27, 2019

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 graphql-toolkit@0.5.0 requires a peer of graphql-tag-pluck@^0.8.3 but none is installed. You must install peer dependencies yourself.
npm WARN @conduitvc/mosca@2.8.3 requires a peer of leveldown@~1.4.3 but none is installed. You must install peer dependencies yourself.
npm WARN @conduitvc/mosca@2.8.3 requires a peer of ioredis@^1.15.1 but none is installed. You must install peer dependencies yourself.
npm WARN @conduitvc/mosca@2.8.3 requires a peer of mongodb@~2.1.4 but none is installed. You must install peer dependencies yourself.
npm WARN @graphql-modules/di@0.7.5 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: fsevents@2.0.7 (node_modules\@aws-amplify\cli\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\@aws-amplify\cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs-ext@0.5.0 (node_modules\@aws-amplify\cli\node_modules\fs-ext):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs-ext@0.5.0 install: `node-gyp configure build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: snappy@5.0.5 (node_modules\@aws-amplify\cli\node_modules\snappy):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: snappy@5.0.5 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: zmq@2.15.3 (node_modules\@aws-amplify\cli\node_modules\zmq):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: zmq@2.15.3 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

@micaelgallego
Copy link

Same issue here.

How can we install an old version that works?

@psyrenpark
Copy link

psyrenpark commented Sep 4, 2019

I have Similar issue

npm install -g npm
npm install --global --production windows-build-tools
// nodejs/node-gyp#1195

choco upgrade python
choco upgrade nodejs

//------------------------------------------------------------------------------------------------------------

zmq@2.15.3 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<v8::Fu
nction> v8::Function::New(v8::Localv8::Context,v8::FunctionCallback,v8::Localv8::Value,int,v8::ConstructorBehavior,v8::SideEffectType)': 인수 1을(를) 'v8::Isolate *'에서 'v8::
Localv8::Context'(으)로 변환할 수 없습니다. (소스 파일 컴파일 중 ..\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_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<v
8::Object,v8::NonCopyablePersistentTraits>'의 멤버가 아닙니다. [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
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<v8::Object,v8::NonCopyablePersi
stentTraits>' 선언을 참조하십시오.
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::PersistentBasev8::Object
::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::PersistentBasev8::Object::MarkIndependent' 선언을 참조하십시오. (소스 파일 컴파일 중 ..\binding
.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>'의 멤버가 아닙니다. [C:\Users\psyrenpark\AppData\Roaming\npm\node_modules@aws-amplify\cli\node_modules\zmq\build\zmq.vcxproj]
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<v8::Object,v8::NonCopyablePersi
stentTraits>' 선언을 참조하십시오.
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/cli@3.0.0 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


Successfully installed the Amplify CLI

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 node-pre-gyp@0.12.0 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/mosca@2.8.3 requires a peer of leveldown@~1.4.3 but none is installed. You must install peer dependencies yourself.
npm WARN @conduitvc/mosca@2.8.3 requires a peer of ioredis@^1.15.1 but none is installed. You must install peer dependencies yourself.
npm WARN @conduitvc/mosca@2.8.3 requires a peer of mongodb@~2.1.4 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.0.7 (node_modules@aws-amplify\cli\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules@aws-amplify\cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs-ext@0.5.0 (node_modules@aws-amplify\cli\node_modules\fs-ext):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs-ext@0.5.0 install: node-gyp configure build
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: snappy@5.0.5 (node_modules@aws-amplify\cli\node_modules\snappy):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: snappy@5.0.5 install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: zmq@2.15.3 (node_modules@aws-amplify\cli\node_modules\zmq):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: zmq@2.15.3 install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

@azatoth
Copy link

azatoth commented Sep 19, 2019

I also encountered the ‘class v8::Object’ has no member named ‘ForceSet’ error.

With following tree:

├─┬ @aws-amplify/cli@3.8.0
│ └─┬ amplify-util-mock@2.8.0
│   └─┬ amplify-appsync-simulator@0.14.0
│     └─┬ @conduitvc/mosca@2.8.3
│       └─┬ ascoltatori@3.2.0
│         └─┬ kafka-node@0.5.9
│           └── UNMET OPTIONAL DEPENDENCY snappy@^5.0.5

we can deduce that while kafka-node has a newer version with a fix SOHU-Co/kafka-node#760 applied, moscajs/ascoltatori#195 hasn't progressed to use a newer kafka-node.

@SwaySway SwaySway added the review label Oct 3, 2019
@kaustavghosh06
Copy link
Contributor

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.

@jkeys-ecg-nmsu
Copy link

Solution from #1996 (comment) Documented on StackOverflow.

@larrycoons
Copy link

Sudo makes better since so that it prompts for a device password and overrides the permission errors. Genius!

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working installation Issues tied to installation of the CLI
Projects
None yet
Development

No branches or pull requests