extension.js
extension.js copied to clipboard
create project failed with 2.0.0-alpha.5
I install extension.js globally. it worked well util i update it to 2.0.0-alpha.5
the demo:
Test 1. create with 2.0.0-alpha.5
Fail,the project dir is empty.
λ extension create sample --template=react
� - Starting a new browser extension named sample...
� - Ensuring sample folder exists...
� - Checking if destination path is writeable...
� - Scanning for potential conflicting files...
� - Installing sample from template react...
[======= ] 13% 22.3sError pulling git repository: Error: Command failed: mv examples/react E:\work-tmp\react
mv: cannot stat 'examples/react': No such file or directory
at genericNodeError (node:internal/errors:983:15)
at wrappedFn (node:internal/errors:537:14)
at ChildProcess.exithandler (node:child_process:421:12)
at ChildProcess.emit (node:events:520:28)
at maybeClose (node:internal/child_process:1105:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
code: 1,
killed: false,
signal: null,
cmd: 'mv examples/react E:\\work-tmp\\react',
stdout: '',
stderr: "mv: cannot stat 'examples/react': No such file or directory\n"
}
λ npm list -g | grep 'extension'
⠇├── [email protected]
Test 2. create with 1.8.0
Success
npm remove -g extension
removed 882 packages in 3s
λ npm i -g [email protected]
added 901 packages in 32s
λ extension create sample --template=react
� - Starting a new browser extension named sample...
� - Ensuring sample folder exists...
� - Checking if destination path is writeable...
� - Scanning for potential conflicting files...
� - Installing sample from react template...
Your � Extension.js version is outdated.
The latest version is 2.0.0-alpha.5. Please update!
� - Writing package.json metadata...
� - Installing dependencies...
� - Writing README.md metadata...
� - Writing manifest.json metadata...
� - Success! Extension sample created.
Now cd sample and npm run dev to open a new browser instance
with your extension installed, loaded, and enabled for development.
You are ready. Time to hack on your extension!
Test 3. create with 2.0.0-alpha.5 [again]
Fail
npm update -g extension
added 68 packages, removed 87 packages, and changed 804 packages in 27s
λ npm list -g | grep 'extension'
⠏├── [email protected]
λ extension create sample-again --template=react
� - Starting a new browser extension named sample-again...
� - Ensuring sample-again folder exists...
� - Checking if destination path is writeable...
� - Scanning for potential conflicting files...
� - Installing sample-again from template react...
Removing existing .go-git-it-temp-folder...
[===== ] 10% 22.0sError pulling git repository: Error: Command failed: mv examples/react E:\work-tmp\react
mv: cannot stat 'examples/react': No such file or directory
at genericNodeError (node:internal/errors:983:15)
at wrappedFn (node:internal/errors:537:14)
at ChildProcess.exithandler (node:child_process:421:12)
at ChildProcess.emit (node:events:520:28)
at maybeClose (node:internal/child_process:1105:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
code: 1,
killed: false,
signal: null,
cmd: 'mv examples/react E:\\work-tmp\\react',
stdout: '',
stderr: "mv: cannot stat 'examples/react': No such file or directory\n"
}
Hi @xesam, thanks for reporting. On it
Same