amplify-cli: npm install -g @aws-amplify/cli error
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.```
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 30
- Comments: 25 (7 by maintainers)
sudo npm install -g --unsafe-perm --verbose @aws-amplify/cli
worked for me.@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.
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’?
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
//------------------------------------------------------------------------------------------------------------
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<T>>'의 멤버가 아닙니다. [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<T>>’ 선언을 참조하십시오. 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<T>>'의 멤버가 아닙니다. [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<T>>’ 선언을 참조하십시오. 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 okIgnore 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 1I tried
npm install -g @aws-amplify/cli --unsafe-perm=true
as suggested above, but I still see all the errors.My versions:
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.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
+1
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.Same issue here.
How can we install an old version that works?
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: