前提・実現したいこと
terminalでpackage.jsonを作成したい。
発生している問題・エラーメッセージ
Error: EPERM: operation not permitted, uv_cwd
at process.wrappedCwd (internal/bootstrap/switches/does_own_process_state.js:128:26)
at process.cwd (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:10:19)
at Conf.loadPrefix (/usr/local/lib/node_modules/npm/lib/config/load-prefix.js:46:24)
at load_ (/usr/local/lib/node_modules/npm/lib/config/core.js:109:8)
at Conf.<anonymous> (/usr/local/lib/node_modules/npm/lib/config/core.js:96:5)
at Conf.emit (events.js:315:20)
at ConfigChain._resolve (/usr/local/lib/node_modules/npm/node_modules/config-chain/index.js:281:34)
at ConfigChain.add (/usr/local/lib/node_modules/npm/node_modules/config-chain/index.js:259:10)
at Conf.add (/usr/local/lib/node_modules/npm/lib/config/core.js:338:27)
at Conf.<anonymous> (/usr/local/lib/node_modules/npm/lib/config/core.js:314:25)
internal/bootstrap/switches/does_own_process_state.js:128
cachedCwd = rawMethods.cwd();
^
Error: EPERM: operation not permitted, uv_cwd
at process.wrappedCwd (internal/bootstrap/switches/does_own_process_state.js:128:26)
at process.cwd (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:10:19)
at process.errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:183:30)
at process.emit (events.js:315:20)
at process._fatalException (internal/process/execution.js:165:25) {
errno: -1,
code: 'EPERM',
syscall: 'uv_cwd'
}
エラーメッセージ Error: EPERM: operation not permitted, uv_cwd ### 該当のソースコード sutoumichimasa@sudoujihinnoMBP ~ % cd Desktop sutoumichimasa@sudoujihinnoMBP Desktop % cd Secrets sutoumichimasa@sudoujihinnoMBP Secrets % npm init ### 試したこと npm cashe clearを試してみたがうまくいかなかった。 ↓output コード
Error: EPERM: operation not permitted, uv_cwd
at process.wrappedCwd (internal/bootstrap/switches/does_own_process_state.js:128:26)
at process.cwd (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:10:19)
at Conf.loadPrefix (/usr/local/lib/node_modules/npm/lib/config/load-prefix.js:46:24)
at load_ (/usr/local/lib/node_modules/npm/lib/config/core.js:109:8)
at Conf.<anonymous> (/usr/local/lib/node_modules/npm/lib/config/core.js:96:5)
at Conf.emit (events.js:315:20)
at ConfigChain._resolve (/usr/local/lib/node_modules/npm/node_modules/config-chain/index.js:281:34)
at ConfigChain.add (/usr/local/lib/node_modules/npm/node_modules/config-chain/index.js:259:10)
at Conf.add (/usr/local/lib/node_modules/npm/lib/config/core.js:338:27)
at Conf.<anonymous> (/usr/local/lib/node_modules/npm/lib/config/core.js:314:25)
internal/bootstrap/switches/does_own_process_state.js:128
cachedCwd = rawMethods.cwd();
^
Error: EPERM: operation not permitted, uv_cwd
at process.wrappedCwd (internal/bootstrap/switches/does_own_process_state.js:128:26)
at process.cwd (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:10:19)
at process.errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:183:30)
at process.emit (events.js:315:20)
at process._fatalException (internal/process/execution.js:165:25) {
errno: -1,
code: 'EPERM',
syscall: 'uv_cwd'
}
補足情報(FW/ツールのバージョンなど)
プログラミング初心者です。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/09/19 09:49