Scratch-blocks: notsup Not compatible with your operating system or architecture: [email protected]

Created on 10 Oct 2016  Β·  32Comments  Β·  Source: LLK/scratch-blocks

after i install scratch blocks via npm install,
and then i run npm install and i got a error

root@iZ28g94hbuiZ:/var/www/html/scratch-blocks# npm install
npm WARN lifecycle [email protected]~prepublish: cannot run in wd %s %s (wd=%s) scratc
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
r

bug

All 32 comments

But which OS do you have

Do not use npm install. Instead go to test/vertical_playground.html

@rschamp ideas on this?

@dekrain i use Ubuntu 14.04 lts

@dekrain do you mean after i git clone scratch-blocks rep,i just go to tests?
when i go test/vertical_playground.html,is does not show closure-related error but can not work rightly
http://langxm.cn/scratch-blocks/tests/horizontal_playground.html

You must have Google closure library. If you get alert, go to link on that alert.

If you want to just play in scratch-vm, just go here.

@yonghuming The first error is truncated. Would you please paste the full text of it?

I believe I've seen the second warning about fsevents before and it can be ignored.

To fix your issue with closure, you can symlink the closure library included as a dependency by running this from your scratch-blocks directory:

ln -s $(npm root)/google-closure-library ../closure-library

root@iZ28g94hbuiZ:/var/www/html/sb# npm install npm WARN lifecycle [email protected]~prepublish: cannot run in wd %s %s (wd=%s) [email protected] python ./build.py && ./node_modules/.bin/webpack /var/www/html/sb npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

i try ln -s $(npm root)/google-closure-library ../closure-library
in the scratch-blocks root,but it does not work

root@iZ28g94hbuiZ:/var/www/html/sb# npm install
npm WARN lifecycle [email protected]~prepublish: cannot run in wd %s %s (wd=%s) [email protected] python ./build.py && ./node_modules/.bin/webpack /var/www/html/sb
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
root@iZ28g94hbuiZ:/var/www/html/sb# ln -s $(npm root)/google-closure-library ../closure-library
ln: failed to create symbolic link β€˜../closure-library/google-closure-library’: File exists
root@iZ28g94hbuiZ:/var/www/html/sb#

http://langxm.cn/sb/tests/horizontal_playground.html
i vist this page,but it does not alert any error but it can not drag either

`2083 ll
2084 cd ..
2085 ll
2086 rm -r sb/
2087 cd scratch-blocks/
2088 ll
2089 cd ..
2090 ll
2091 cp closure-library/ closure-library.bak
2092 ll
2093 cp -r closure-library/ closure-library.bak
2094 ll
2095 rm closure-library
2096 rm -r closure-library
2097 ll
2098 cd scratch-blocks/
2099 ll
2100 ln -s $(npm root)/google-closure-library ../closure-library
2101 ll
2102 cd ..
2103 ll
2104 cd scratch-blocks/
2105 ll
2106 npm install
2107 history
root@iZ28g94hbuiZ:/var/www/html/scratch-blocks# q

blockly works properly

http://langxm.cn/blockly/tests/playground.html

`

Use

markdown \``` Your logs here... \```

pm install
npm WARN lifecycle [email protected]~prepublish: cannot run in wd %s %s (wd=%s) [email protected] python ./build.py && ./node_modules/.bin/webpack /var/www/html/scratch-blocks
[email protected] /var/www/html/scratch-blocks
β”œβ”€β”¬ [email protected] 
β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ └── [email protected] 
β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”‚ └── [email protected] 
β”‚ β”‚ └── [email protected] 
β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ └── [email protected] 
β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ └── [email protected] 
β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ └── [email protected] 
β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ └─┬ [email protected] 
β”‚ β”‚   └── [email protected] 
β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ └── [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”‚ β”‚ β”‚ └─┬ [email protected] 
β”‚ β”‚ β”‚ β”‚ β”‚   └── [email protected] 
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”‚ β”‚ β”‚ └── [email protected] 
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”‚ β”‚ β”‚ └── [email protected] 
β”‚ β”‚ β”‚ β”‚ └── [email protected] 
β”‚ β”‚ β”‚ └── [email protected] 
β”‚ β”‚ └── [email protected] 
β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”‚ └── [email protected] 
β”‚ β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”‚ └─┬ [email protected] 
β”‚ β”‚ β”‚   β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”‚   └── [email protected] 
β”‚ β”‚ └── [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”‚ └─┬ [email protected] 
β”‚ β”‚ β”‚   β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”‚   └── [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”‚ β”‚ └── [email protected] 
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”‚ └── [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ └── [email protected] 
β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”‚ └── [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ └── [email protected] 
β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ └── [email protected] 
β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”‚ └── [email protected] 
β”‚ β”‚ └── [email protected] 
β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ └── [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ └── [email protected] 
β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ └── [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”‚ └── [email protected] 
β”‚ β”‚ └── [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”‚ └── [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ └── [email protected] 
β”‚ β”œβ”€β”€ [email protected] 
β”‚ └─┬ [email protected] 
β”‚   └── [email protected] 
β”œβ”€β”¬ [email protected] 
β”‚ β”œβ”€β”¬ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ β”œβ”€β”€ [email protected] 
β”‚ β”‚ └── [email protected] 
β”‚ └─┬ [email protected] 
β”‚   └── [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
β”œβ”€β”€ [email protected] 
└─┬ [email protected] 
  β”œβ”€β”€ [email protected] 
  β”œβ”€β”€ [email protected] 
  β”œβ”€β”€ [email protected] 
  β”œβ”€β”¬ [email protected] 
  β”‚ β”œβ”€β”€ [email protected] 
  β”‚ └── [email protected] 
  β”œβ”€β”€ [email protected] 
  β”œβ”€β”¬ [email protected] 
  β”‚ └─┬ [email protected] 
  β”‚   └── [email protected] 
  β”œβ”€β”¬ [email protected] 
  β”‚ β”œβ”€β”€ [email protected] 
  β”‚ β”œβ”€β”¬ [email protected] 
  β”‚ β”‚ └── [email protected] 
  β”‚ β”œβ”€β”¬ [email protected] 
  β”‚ β”‚ β”œβ”€β”€ [email protected] 
  β”‚ β”‚ └── [email protected] 
  β”‚ β”œβ”€β”¬ [email protected] 
  β”‚ β”‚ └── [email protected] 
  β”‚ β”œβ”€β”€ [email protected] 
  β”‚ β”œβ”€β”¬ [email protected] 
  β”‚ β”‚ β”œβ”€β”€ [email protected] 
  β”‚ β”‚ β”œβ”€β”€ [email protected] 
  β”‚ β”‚ └── [email protected] 
  β”‚ β”œβ”€β”€ [email protected] 
  β”‚ β”œβ”€β”€ [email protected] 
  β”‚ β”œβ”€β”¬ [email protected] 
  β”‚ β”‚ └── [email protected] 
  β”‚ β”œβ”€β”€ [email protected] 
  β”‚ β”œβ”€β”€ [email protected] 
  β”‚ β”œβ”€β”€ [email protected] 
  β”‚ β”œβ”€β”€ [email protected] 
  β”‚ β”œβ”€β”€ [email protected] 
  β”‚ β”œβ”€β”€ [email protected] 
  β”‚ β”œβ”€β”¬ [email protected] 
  β”‚ β”‚ └── [email protected] 
  β”‚ β”œβ”€β”¬ [email protected] 
  β”‚ β”‚ └─┬ [email protected] 
  β”‚ β”‚   └── [email protected] 
  β”‚ β”œβ”€β”€ [email protected] 
  β”‚ β”œβ”€β”€ [email protected] 
  β”‚ β”œβ”€β”€ [email protected] 
  β”‚ β”œβ”€β”¬ [email protected] 
  β”‚ β”‚ β”œβ”€β”€ [email protected] 
  β”‚ β”‚ └── [email protected] 
  β”‚ β”œβ”€β”¬ [email protected] 
  β”‚ β”‚ └── [email protected] 
  β”‚ └─┬ [email protected] 
  β”‚   └── [email protected] 
  β”œβ”€β”¬ [email protected] 
  β”‚ └── [email protected] 
  β”œβ”€β”¬ [email protected] 
  β”‚ └── [email protected] 
  β”œβ”€β”€ [email protected] 
  β”œβ”€β”¬ [email protected] 
  β”‚ β”œβ”€β”€ [email protected] 
  β”‚ β”œβ”€β”€ [email protected] 
  β”‚ β”œβ”€β”€ [email protected] 
  β”‚ └─┬ [email protected] 
  β”‚   β”œβ”€β”€ [email protected] 
  β”‚   β”œβ”€β”¬ [email protected] 
  β”‚   β”‚ β”œβ”€β”¬ [email protected] 
  β”‚   β”‚ β”‚ β”œβ”€β”¬ [email protected] 
  β”‚   β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] 
  β”‚   β”‚ β”‚ β”‚ └── [email protected] 
  β”‚   β”‚ β”‚ └── [email protected] 
  β”‚   β”‚ β”œβ”€β”€ [email protected] 
  β”‚   β”‚ └── [email protected] 
  β”‚   β”œβ”€β”€ [email protected] 
  β”‚   └── [email protected] 
  β”œβ”€β”¬ [email protected] 
  β”‚ β”œβ”€β”€ [email protected] 
  β”‚ └─┬ [email protected] 
  β”‚   β”œβ”€β”¬ [email protected] 
  β”‚   β”‚ β”œβ”€β”€ [email protected] 
  β”‚   β”‚ └─┬ [email protected] 
  β”‚   β”‚   β”œβ”€β”¬ [email protected] 
  β”‚   β”‚   β”‚ └── [email protected] 
  β”‚   β”‚   β”œβ”€β”€ [email protected] 
  β”‚   β”‚   β”œβ”€β”¬ [email protected] 
  β”‚   β”‚   β”‚ β”œβ”€β”¬ [email protected] 
  β”‚   β”‚   β”‚ β”‚ └─┬ [email protected] 
  β”‚   β”‚   β”‚ β”‚   β”œβ”€β”€ [email protected] 
  β”‚   β”‚   β”‚ β”‚   β”œβ”€β”€ [email protected] 
  β”‚   β”‚   β”‚ β”‚   └── [email protected] 
  β”‚   β”‚   β”‚ β”œβ”€β”€ [email protected] 
  β”‚   β”‚   β”‚ └── [email protected] 
  β”‚   β”‚   β”œβ”€β”¬ [email protected] 
  β”‚   β”‚   β”‚ └── [email protected] 
  β”‚   β”‚   β”œβ”€β”€ [email protected] 
  β”‚   β”‚   β”œβ”€β”€ [email protected] 
  β”‚   β”‚   β”œβ”€β”¬ [email protected] 
  β”‚   β”‚   β”‚ └── [email protected] 
  β”‚   β”‚   β”œβ”€β”€ [email protected] 
  β”‚   β”‚   β”œβ”€β”¬ [email protected] 
  β”‚   β”‚   β”‚ β”œβ”€β”¬ [email protected] 
  β”‚   β”‚   β”‚ β”‚ └── [email protected] 
  β”‚   β”‚   β”‚ └── [email protected] 
  β”‚   β”‚   β”œβ”€β”¬ [email protected] 
  β”‚   β”‚   β”‚ β”œβ”€β”€ [email protected] 
  β”‚   β”‚   β”‚ └── [email protected] 
  β”‚   β”‚   └─┬ [email protected] 
  β”‚   β”‚     β”œβ”€β”€ [email protected] 
  β”‚   β”‚     └── [email protected] 
  β”‚   β”œβ”€β”€ [email protected] 
  β”‚   β”œβ”€β”€ [email protected] 
  β”‚   β”œβ”€β”¬ [email protected] 
  β”‚   β”‚ └── [email protected] 
  β”‚   β”œβ”€β”¬ [email protected] 
  β”‚   β”‚ └── [email protected] 
  β”‚   └─┬ [email protected] 
  β”‚     └── [email protected] 
  └─┬ [email protected] 
    β”œβ”€β”€ [email protected] 
    └── [email protected] 

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
root@iZ28g94hbuiZ:/var/www/html/scratch-blocks# 

without \

@yonghuming The link http://langxm.cn/sb/tests/horizontal_playground.html doesn't work for me. Is it still active?

Unfortunately, that log doesn't seem to expose any useful error.

@tmickel i am sorry, i just rm -r sb,and try git clone ,npm install and symblink again

@yonghuming Your copy of scratch-blocks appears not to be built.

Try going to the /scratch-blocks/ directory and running:
npm run prepublish.

i found http://eeyi.org/scratch-blocks/blockly_uncompressed_horizontal.js Failed to load resource: the server responded with a status of 404 (Not Found) in the chrome console,maybe i need to build?

@yonghuming yes - try npm run prepublish or ./build.py

@tmickel ig to log

root@iZ28g94hbuiZ:/var/www/html/scratch-blocks# npm run prepublish

> [email protected] prepublish /var/www/html/scratch-blocks
> python ./build.py && ./node_modules/.bin/webpack

Traceback (most recent call last):
  File "i18n/js_to_json.py", line 120, in <module>
    main()
  File "i18n/js_to_json.py", line 108, in main
    write_files(args.author, args.lang, args.output_dir, results, False)
  File "/var/www/html/scratch-blocks/i18n/common.py", line 210, in write_files
    lang_file = _create_lang_file(author, lang, output_dir)
  File "/var/www/html/scratch-blocks/i18n/common.py", line 128, in _create_lang_file
    lang_file = codecs.open(lang_file_name, 'w', 'utf-8')
  File "/usr/lib/python2.7/codecs.py", line 878, in open
    file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 2] No such file or directory: './msg/json/en.json'
('Error running i18n/js_to_json.py: ', CalledProcessError())
SUCCESS: blockly_uncompressed_horizontal.js
SUCCESS: blockly_uncompressed_vertical.js
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "./build.py", line 179, in run
    self.gen_core(True)
  File "./build.py", line 214, in gen_core
    self.do_compile(params, target_filename, filenames, "")
  File "./build.py", line 255, in do_compile
    conn.request("POST", "/compile", urllib.urlencode(params), headers)
  File "/usr/lib/python2.7/httplib.py", line 979, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 1013, in _send_request
    self.endheaders(body)
  File "/usr/lib/python2.7/httplib.py", line 975, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 835, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 797, in send
    self.connect()
  File "/usr/lib/python2.7/httplib.py", line 778, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 110] Connection timed out

Hash: 37c5cb6a75b0129247da
Version: webpack 1.13.2
Time: 349ms
        Asset     Size  Chunks             Chunk Names
horizontal.js  96.4 kB       0  [emitted]  horizontal
  vertical.js  96.5 kB       1  [emitted]  vertical
   [0] ./shim/horizontal.js 161 bytes {0} [built]
   [0] ./shim/vertical.js 157 bytes {1} [built]
   [2] ./shim/blocks_compressed_horizontal.js 148 bytes {0} [built] [1 error]
   [3] ./shim/blockly_compressed_horizontal.goog.js 66 bytes {0} [built]
   [4] ./shim/blockly_compressed_horizontal.js 104 bytes {0} [built] [1 error]
   [6] ./shim/blocks_compressed_vertical.js 189 bytes {1} [built] [1 error]
   [7] ./shim/blockly_compressed_vertical.goog.js 64 bytes {1} [built]
   [8] ./shim/blockly_compressed_vertical.js 102 bytes {1} [built] [1 error]
    + 2 hidden modules

ERROR in ./shim/blocks_compressed_horizontal.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../blocks_compressed_horizontal in /var/www/html/scratch-blocks/shim
 @ ./shim/blocks_compressed_horizontal.js 1:17-146

ERROR in ./shim/blocks_compressed_vertical.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../blocks_compressed_vertical in /var/www/html/scratch-blocks/shim
 @ ./shim/blocks_compressed_vertical.js 1:17-187

ERROR in ./shim/blockly_compressed_horizontal.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../blockly_compressed_horizontal in /var/www/html/scratch-blocks/shim
 @ ./shim/blockly_compressed_horizontal.js 1:17-102

ERROR in ./shim/blockly_compressed_vertical.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../blockly_compressed_vertical in /var/www/html/scratch-blocks/shim
 @ ./shim/blockly_compressed_vertical.js 1:17-100
root@iZ28g94hbuiZ:/var/www/html/scratch-blocks# 

i seems work now ,but also an error horizontal_playground.html:1 Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause().

```IOError: [Errno 2] No such file or directory: './msg/json/en.json'

there is indeed no such file or directory

@yonghuming The first is a known issue with Blockly: https://github.com/google/blockly/issues/299

The second we should investigate separately.

I'm going to close this issue since the error message is not a problem.

@yonghuming The cannot run in wd %s %s (wd=%s) error means that the user running the command doesn't have permissions for the directory. Your user must have read and write permissions for the scratch-blocks and ../closure-library directories. It looks like when you checked out a new copy, this was resolved, so this is for you to be aware of in the future.

In your latest stack trace it says error: [Errno 110] Connection timed out, which means that it lost the network connection while it was trying to run the closure compiler. You should try to run ./build.py again to avoid that.

Regarding the error IOError: [Errno 2] No such file or directory: './msg/json/en.json' @rachel-fenichel It looks like this was removed in https://github.com/LLK/scratch-blocks/pull/667/commits/79013d14fbe8f3ca9ff88920d4db762f3679b607?

@tmickel maybe it's because the branch
/msg/json/en.json is in the deture branch ,and i git develop branch

@rschamp i am root user,my the net problem

@yonghuming I see β€”Β running as the root user will also cause problems because npm tries to run as a user with limited privileges. You shouldn't run npm install as the root user because if you accidentally install the wrong package, the install script could do anything to your system. You should run as a regular user. If you must run as the root user, then you need to run with npm install --unsafe-perm. However I have to emphasize that you _should not_ do this. See https://docs.npmjs.com/misc/scripts#user

ok thank you very much @rschamp

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tmickel picture tmickel  Β·  3Comments

Alzter picture Alzter  Β·  3Comments

towerofnix picture towerofnix  Β·  6Comments

tmickel picture tmickel  Β·  6Comments

thisandagain picture thisandagain  Β·  5Comments