홈>
운영 체제 : MacOS Mojave 10.14.2
이온 : 4.10.3 노드 : 10.15.2 npm : 6.4.1
새 프로젝트를 만들려고 할 때 ionic 또는 npm이 실패합니다 :
명령을 내릴 때 :
Sudo ionic start testApp blank --type = ionic-angular
> node-sass@4.11.0 postinstall /Users/international/Public/testApp/node_modules/node-sass
> node scripts/build.js
Building: /usr/local/bin/node /Users/international/Public/testApp/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/local/bin/node',
gyp verb cli '/Users/international/Public/testApp/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library=' ]
gyp info using node-gyp@3.8.0
gyp info using node@10.15.2 | darwin | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "/usr/bin/python2.7" in the PATH
gyp verb `which` succeeded /usr/bin/python2.7 /usr/bin/python2.7
gyp verb check python version `/usr/bin/python2.7 -c "import sys; print "2.7.10
gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 10.15.2
gyp verb command install [ '10.15.2' ]
gyp verb install input version string "10.15.2"
gyp verb install installing version: 10.15.2
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 10.15.2
gyp verb build dir attempting to create "build" dir: /Users/international/Public/testApp/node_modules/node-sass/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/international/Public/testApp/node_modules/node-sass/build'
gyp ERR! System Darwin 18.2.0
gyp ERR! command "/usr/local/bin/node" "/Users/international/Public/testApp/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/international/Public/testApp/node_modules/node-sass
gyp ERR! node -v v10.15.2
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 install: `node install`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.11.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.11.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/international/.npm/_logs/2019-03-05T09_26_51_725Z-debug.log
[ERROR] An error occurred while running subprocess npm.
npm i exited with exit code 1.
어딘가에 "permission denied"가 오류로 표시되지만 내 명령에서 sudo를 접두사로 사용했습니다.
어떤 일이 일어 났는지 전혀 알지 못했고 이에 대한 해결책을 찾기 위해 많은 시간을 보냈습니다. 또한 MacOS의 새로운 사용자입니다
-
답변 # 1
관련 자료
- docusignapi - 오류 - error : 0909006c : pem 루틴 : get_name : 시작 줄 없음 :마디
- crontab을 실행할 때 MacOS에서 python 가져 오기 오류가 발생합니다
- node.js - 새로운 macOS Catalina 업데이트로 인한 Node Gyp 오류를 수정하는 방법
- Firebase 에뮬레이터가 의미없는 오류로 시작되지 않음
- Ionic + Cordova Android build error - ionic + cordova android 빌드 오류 - toolsjar을 찾을 수 없습니다
- ionic 5 iOS 앱이 오류 로그없이 시작 화면에 멈춤
- Android Studio 411 macOS 전체 화면 오류
- ionic4 - 오류 - 저장소의 모든 매개 변수를 확인할 수 없습니다 : (?,?) 이온
- 이온 각도의 일반적인 오류 유효성 검사 메시지
- mac - MacOS 1014 Mojave에서 iTunes 9 실행
- macOS 1013 및 Python 38에서 pyautogui를 가져올 때 오류 발생
- linux - mysql이 시작되지 않습니다오류 - su : 경고 : 디렉토리를/nonexistent로 변경할 수 없음 : 해당 파일 또는 디렉토리가 없습니다
- javascript - npm start throwing error '이것은 npm이 파일을 찾을 수없는 것과 관련이 있습니다'
- Ionic Capacitor iOS Firebase 앱이 시작되지 않음
- apache kafka - docker compose mac 오류 - 서비스 zoo1을 시작할 수 없습니다 마운트가 거부되었습니다
- 이온 각도 프록시 반환 오류 404를 찾을 수 없습니다
- android - ionic 오류 - 'cordova-plugin-firebase'를 설치하지 못했습니다 오류 : 어 오 :설치하는 동안
- node.js - npm 시작 명령에서 스크립트 오류 누락
node_modules
의 소유권을 변경해야합니다 폴더.폴더의 권한을 변경하려면 터미널에서 다음을 실행하십시오 :
작동하지 않으면 다음과 같이 폴더에 대한 권한을 재귀 적으로 설정할 수 있습니다.