Open michelle2222 opened 6 years ago
Same issue. Hopefully Truffle will have some answers.
Similar issue. I may be able to help.
Install all the required tools and configurations using Microsoft's windows-build-tools using
npm install --global --production windows-build-tools
from an elevated PowerShell or CMD.exe (run as Administrator).
To navigate the PowerShell as an admin:
Set-Location -Path C:\Path\To\Empty\Directory -PassThru
-PassThru lets you check that you are in the directory you stated
Then try running truffle unbox react
. Everything should work now.
I have this issue trying to unbox React with Truffle, too. I've not been able to get anything done with NPM in a few days now. One problem after another.
$ truffle unbox react
Downloading...
Unpacking...
Setting up...
Error: Command failed: cd client && npm install && npm run link-contracts
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
bash: run-script-os: command not found
npm ERR! file bash
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! client@0.1.0 link-contracts: `run-script-os`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the client@0.1.0 link-contracts 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! C:\Users\Aristophanes\AppData\Roaming\npm-cache\_logs\2018-11-10T13_18_18_180Z-debug.log
at ChildProcess.exithandler (child_process.js:289:12)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:970:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:257:5)
The same problem, no Python 3 at all on the PC, Windows 10
npm i > v8-profiler@5.7.0 preinstall c:\VRNET\VRnet\viewers\web\node_modules\v8-profiler > node -e 'process.exit(0)' > v8-profiler@5.7.0 install c:\VRNET\VRnet\viewers\web\node_modules\v8-profiler > node-pre-gyp install --fallback-to-build node-pre-gyp ERR! Tried to download(404): https://node-inspector.s3.amazonaws.com/profiler/v5.7.0/node-v64-win32-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for v8-profiler@5.7.0 and node@10.15.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp ERR! Tried to download(undefined): https://node-inspector.s3.amazonaws.com/profiler/v5.7.0/node-v64-win32-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for v8-profiler@5.7.0 and node@10.15.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp) Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilationW arning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation WWarning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilationarning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation WWarning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilationarning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation Traceback (most recent call last): File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py", line 16, insys.exit(gyp.script_main()) File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 545, in script_main return main(sys.argv[1:]) File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 538, in main return gyp_main(args) File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 523, in gyp_main generator.GenerateOutput(flat_list, targets, data, params) File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 2025, in GenerateOutput version=msvs_version) File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\MSVSNew.py", line 213, in __init__ self.Write() File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\MSVSNew.py", line 340, in Write f.close() File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\common.py", line 393, in close os.rename(self.tmp_path, filename) WindowsError: [Error 183] ═хтючьюцэю ёючфрЄ№ Їрщы, gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:345:16) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12) gyp ERR! System Windows_NT 10.0.17134 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=c:\\VRNET\\VRnet\\viewers\\web\\node_modules\\v8-profiler\\build\\profiler\\v5.7.0\\node-v64-win32-x64\\profiler.node" "--module_name=profiler" "--module_path=c:\\VRNET\\VRnet\\viewers\\web\\node_modules\\v8-profiler\\build\\profiler\\v5.7.0\\node-v64-win32-x64" "--python=C:\\Program Files\\Python27\\python.exe" gyp ERR! cwd c:\VRNET\VRnet\viewers\web\node_modules\v8-profiler gyp ERR! node -v v10.15.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=c:\VRNET\VRnet\viewers\web\node_modules\v8-profiler\build\profiler\v5.7.0\node-v64-win32-x64\profiler.node --module_name=profiler --module_path=c:\VRNET\VRnet\viewers\web\node_modules\v8-profiler\build\profiler\v5.7.0\node-v64-win32-x64 --python=C:\Program Files\Python27\python.exe' (1) node-pre-gyp ERR! stack at ChildProcess. (c:\VRNET\VRnet\viewers\web\node_modules\node-pre-gyp\lib\util\compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:962:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5) node-pre-gyp ERR! System Windows_NT 10.0.17134 node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "c:\\VRNET\\VRnet\\viewers\\web\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd c:\VRNET\VRnet\viewers\web\node_modules\v8-profiler node-pre-gyp ERR! node -v v10.15.0 node-pre-gyp ERR! node-pre-gyp -v v0.6.39 node-pre-gyp ERR! not ok Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=c:\VRNET\VRnet\viewers\web\node_modules\v8-profiler\build\profiler\v5.7.0\node-v64-win32-x64\profiler.node --module_name=profiler --module_path=c:\VRNET\VRnet\viewers\web\node_modules\v8-profiler\build\profiler\v5.7.0\node-v64-win32-x64 --python=C:\Program Files\Python27\python.exe' (1) npm WARN vrnet@ No repository field. npm WARN vrnet@ No license field. npm WARN The package gulp-uglify is included as both a dev and production dependency. npm WARN The package pump is included as both a dev and production dependency. npm WARN The package serve-static is included as both a dev and production dependency. npm WARN The package webdav-server is included as both a dev and production dependency. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: v8-profiler@5.7.0 (node_modules\v8-profiler): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: v8-profiler@5.7.0 install: `node-pre-gyp install --fallback-to-build` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 audited 9140 packages in 11.136s found 166 vulnerabilities (148 low, 9 moderate, 9 high) run `npm audit fix` to fix them, or `npm audit` for details
Any solution here? Bump
same issue here.
sudo truffle unbox react
This directory is non-empty...
? Proceed anyway? Yes
✔ Preparing to download box
✔ Downloading
client already exists in this directory...
? Overwrite client? Yes
contracts already exists in this directory...
? Overwrite contracts? Yes
migrations already exists in this directory...
? Overwrite migrations? Yes
test already exists in this directory...
? Overwrite test? Yes
sh: 1: cannot create builderror.log: Permission denied
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/pudio/Documents/atomprojects/TenderDapp/client/node_modules/secp256k1/build'
gyp ERR! System Linux 5.0.0-37-generic
gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pudio/Documents/atomprojects/TenderDapp/client/node_modules/secp256k1
gyp ERR! node -v v12.14.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! secp256k1@3.7.1 rebuild: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the secp256k1@3.7.1 rebuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pudio/.npm/_logs/2019-12-30T13_21_11_221Z-debug.log
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/pudio/Documents/atomprojects/TenderDapp/client/node_modules/keccak/build'
gyp ERR! System Linux 5.0.0-37-generic
gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pudio/Documents/atomprojects/TenderDapp/client/node_modules/keccak
gyp ERR! node -v v12.14.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! keccak@2.0.0 rebuild: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the keccak@2.0.0 rebuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pudio/.npm/_logs/2019-12-30T13_21_12_579Z-debug.log
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/pudio/Documents/atomprojects/TenderDapp/client/node_modules/sha3/build'
gyp ERR! System Linux 5.0.0-37-generic
gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pudio/Documents/atomprojects/TenderDapp/client/node_modules/sha3
gyp ERR! node -v v12.14.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sha3@1.2.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sha3@1.2.3 install 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! /home/pudio/.npm/_logs/2019-12-30T13_21_13_293Z-debug.log
✔ cleaning up temporary files
✖ Setting up box
✖ Setting up box
Error: Command failed: cd client && npm ci
sh: 1: cannot create builderror.log: Permission denied
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/pudio/Documents/atomprojects/TenderDapp/client/node_modules/secp256k1/build'
gyp ERR! System Linux 5.0.0-37-generic
gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pudio/Documents/atomprojects/TenderDapp/client/node_modules/secp256k1
gyp ERR! node -v v12.14.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! secp256k1@3.7.1 rebuild: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the secp256k1@3.7.1 rebuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pudio/.npm/_logs/2019-12-30T13_21_11_221Z-debug.log
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/pudio/Documents/atomprojects/TenderDapp/client/node_modules/keccak/build'
gyp ERR! System Linux 5.0.0-37-generic
gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pudio/Documents/atomprojects/TenderDapp/client/node_modules/keccak
gyp ERR! node -v v12.14.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! keccak@2.0.0 rebuild: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the keccak@2.0.0 rebuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pudio/.npm/_logs/2019-12-30T13_21_12_579Z-debug.log
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/pudio/Documents/atomprojects/TenderDapp/client/node_modules/sha3/build'
gyp ERR! System Linux 5.0.0-37-generic
gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pudio/Documents/atomprojects/TenderDapp/client/node_modules/sha3
gyp ERR! node -v v12.14.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sha3@1.2.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sha3@1.2.3 install 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! /home/pudio/.npm/_logs/2019-12-30T13_21_13_293Z-debug.log
at checkExecSyncError (child_process.js:621:11)
at Object.execSync (child_process.js:657:15)
at Object.installBoxDependencies (/usr/local/lib/node_modules/truffle/build/webpack:/packages/box/dist/lib/utils/unbox.js:107:1)
at Object.setUpBox (/usr/local/lib/node_modules/truffle/build/webpack:/packages/box/dist/lib/utils/index.js:68:1)
at /usr/local/lib/node_modules/truffle/build/webpack:/packages/box/dist/box.js:61:1
at Generator.next (<anonymous>)
at fulfilled (/usr/local/lib/node_modules/truffle/build/webpack:/packages/box/dist/box.js:5:42)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
Truffle v5.1.6 (core: 5.1.6) Node v12.14.0
tried to reinstall truffle, nodejs , tried to install nodejs using nvm, tried to install trufle using sudo using --unsafe-perm,... but still getting the error. anybody can help? please.
Hello I have the same problem and Ir what I have when I using this command : truffle unbox LibertyLocked/truffle-react-ts-template
PS C:\Users\Luckay\TokenV1> truffle unbox LibertyLocked / truffle-react-ts-template
Error: EPERM: operation not permitted, mkdir 'C:\'
at Object.mkdirSync (fs.js:1009:3)
at Object.module.exports.makeDirSync (C:\Users\Luckay\AppData\Roaming\npm\node_modules\truffle\build\webpack:\node_modules\fs-extra\lib\mkdirs\make-dir.js:101:1)
at Object.run (C:\Users\Luckay\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\commands\unbox.js:54:1)
at Command.run (C:\Users\Luckay\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\command.js:147:1)
at Object.586806 (C:\Users\Luckay\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\cli.js:51:1)
at webpack_require__ (C:\Users\Luckay\AppData\Roaming\npm\node_modules\truffle\build\webpack:\webpack\bootstrap:18:1)
at webpack_require.x (C:\Users\Luckay\AppData\Roaming\npm\node_modules\truffle\build\webpack:\webpack\bootstrap:36:1)
at Function.__webpack_require.x (C:\Users\Luckay\AppData\Roaming\npm\node_modules\truffle\build\webpack:\webpack\runtime\startup chunk dependencies:35:1)
at C:\Users\Luckay\AppData\Roaming\npm\node_modules\truffle\build\webpack:\webpack\startup:3:1
at Object.
Hi, I'm trying to unbox the react truffle box, and I keep getting this error. I've uninstalled and reinstalled truffle and node.js (also a bunch of other "solutions"), which didn't work. Any idea why I keep getting this error?
C:\Users\mforr\Documents\University\UQ\DECO7860 Masters Thesis\credentia-dapp>truffle unbox react Downloading... Unpacking... Setting up... Error: Command failed: cd client && npm install && npm run link-contracts Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation gyp ERR! build error gyp ERR! stack Error:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12) gyp ERR! System Windows_NT 10.0.17134 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\mforr\Documents\University\UQ\DECO7860 Masters Thesis\credentia-dapp\client\node_modules\keccak gyp ERR! node -v v10.11.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! keccak@1.4.0 rebuild:node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the keccak@1.4.0 rebuild script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install?npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\mforr\AppData\Roaming\npm-cache_logs\2018-09-25T08_20_37_484Z-debug.log Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation gyp ERR! build error gyp ERR! stack Error:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12) gyp ERR! System Windows_NT 10.0.17134 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\mforr\Documents\University\UQ\DECO7860 Masters Thesis\credentia-dapp\client\node_modules\scrypt gyp ERR! node -v v10.11.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! scrypt@6.0.3 install:
node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the scrypt@6.0.3 install 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! C:\Users\mforr\AppData\Roaming\npm-cache_logs\2018-09-25T08_20_42_671Z-debug.log